Skip to content

Commit 14195f0

Browse files
fix(types): correct shims.d.ts for unocss attributify mode
1 parent 1f6ea62 commit 14195f0

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

shims.d.ts

+14-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
1+
import type { AttributifyAttributes } from 'unocss/preset-attributify'
2+
13
declare namespace svelteHTML {
2-
import type { AttributifyAttributes } from 'unocss/preset-attributify'
4+
type HTMLAttributes = import('unocss/preset-attributify').AttributifyAttributes
35

4-
type HTMLAttributes = AttributifyAttributes
56
}
67

7-
declare namespace JSX {
8-
import type { AttributifyAttributes } from 'unocss/preset-attributify'
8+
declare global {
9+
namespace astroHTML.JSX {
10+
import type { AttributifyAttributes } from 'unocss/preset-attributify'
11+
12+
interface HTMLAttributes extends AttributifyAttributes { }
13+
}
14+
}
915

10-
interface HTMLAttributes extends AttributifyAttributes {}
16+
declare module 'solid-js' {
17+
namespace JSX {
18+
interface HTMLAttributes<T> extends AttributifyAttributes { }
19+
}
1120
}

0 commit comments

Comments
 (0)