Alpine.js
Estimated reading time: less than 1 minuteKita Html provides type definitions for Alpine.js directives.
Once enabled, attributes like x-data, x-show, x-on, and x-text are available on
all HTML elements with autocomplete.
Setup
Create a src/kita.d.ts file in your project and add the triple-slash directive. If you
already have this file for another type extension, append the new directive to it.
src/kita.d.ts
Or enable it globally in tsconfig.json:
tsconfig.json
Usage
Combining with other extensions
Add multiple directives to the same src/kita.d.ts file:
src/kita.d.ts