Skip to content

Commit 2c62420

Browse files
committed
Add types
1 parent 5aa7776 commit 2c62420

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

index.d.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import type { PluginCreator, AtRule } from 'postcss'
2+
3+
export type MixinOutput = Record<string, string | MixinOutput>
4+
5+
export interface Mixin {
6+
(mixinAtRule: AtRule, ...args: string[])
7+
}
8+
9+
export type Mixins = Record<string, MixinOutput | Mixin>
10+
11+
declare const mixins: PluginCreator<{
12+
mixins: Mixins
13+
mixinsDir?: string | string[]
14+
mixinsFiles?: string | string[]
15+
silent?: boolean
16+
}>
17+
18+
export default mixins

0 commit comments

Comments
 (0)