feat: types for attributify mode in jsx by antfu · Pull Request #322 · windicss/windicss
Attributify TypeScript Support Create shims.d.ts with the following content: React import { AttributifyAttributes } from 'windicss/types/jsx' declare module 'react' { interface HTMLAttributes extends AttributifyAttributes {} } Vue 3 import { AttributifyAttributes } from 'windicss/types/jsx' declare module '@vue/runtime-dom' { interface HTMLAttributes extends AttributifyAttributes {} } Attributify with Prefix import { AttributifyNames } from 'windicss/types/jsx' type Prefix = 'w:' // change it to your prefix interface HTMLAttributes extends Partial , string>> {}
https://github.com/windicss/windicss/pull/322