File tree 2 files changed +26
-0
lines changed
2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change
1
+ import { PluginCreator } from "postcss" ;
2
+
3
+ export interface Options {
4
+ /**
5
+ * Wraps the entire rule inside `@layer` syntax.
6
+ */
7
+ layer ?: string ;
8
+
9
+ /**
10
+ * Where to search for css props, globbing allowed.
11
+ */
12
+ files ?: string [ ] ;
13
+
14
+ /**
15
+ * Selector where the props are pushed to instead of `:root`.
16
+ */
17
+ custom_selector ?: string ;
18
+ }
19
+
20
+ type Props = Record < string , string | number > ;
21
+
22
+ export type PostcssJitPropsOptions = Options & Props ;
23
+ declare const postcssJitProps : PluginCreator < PostcssJitPropsOptions > ;
24
+
25
+ export default postcssJitProps ;
Original file line number Diff line number Diff line change 9
9
" css-vars" ,
10
10
" css-custom-properties"
11
11
],
12
+ "types" : " index.d.ts" ,
12
13
"scripts" : {
13
14
"test" : " jest --coverage && eslint ." ,
14
15
"dev" : " jest --coverage --watch" ,
You can’t perform that action at this time.
0 commit comments