Skip to content

Commit fca6a79

Browse files
committed
chore: improve options types
1 parent 5ad442b commit fca6a79

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/index.d.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1-
declare function plugin(
2-
options?: Partial<{ colors: string[]; root: string }>
1+
import type { DefaultColors } from 'tailwindcss/types/generated/colors';
2+
3+
type Colors = keyof Omit<
4+
DefaultColors,
5+
'inherit' | 'current' | 'transparent' | 'black' | 'white'
6+
>;
7+
8+
declare function plugin<T extends Colors>(
9+
options?: Partial<{ colors: Array<T>; root: T }>
310
): {
411
handler: () => void;
512
};

0 commit comments

Comments
 (0)