Skip to content

Commit d0f3817

Browse files
committed
Fix types
1 parent 7f50dc2 commit d0f3817

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

index.d.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
import type { PluginCreator, AtRule } from 'postcss'
22

3-
export type MixinOutput = Record<string, string | MixinOutput>
3+
declare interface MixinOutput {
4+
[key: string]: string | MixinOutput
5+
}
46

5-
export interface Mixin {
7+
declare interface Mixin {
68
(mixinAtRule: AtRule, ...args: string[])
79
}
810

9-
export type Mixins = Record<string, MixinOutput | Mixin>
11+
declare type Mixins = Record<string, MixinOutput | Mixin>
1012

1113
declare const mixins: PluginCreator<{
12-
mixins: Mixins
14+
mixins?: Mixins
1315
mixinsDir?: string | string[]
1416
mixinsFiles?: string | string[]
1517
silent?: boolean

0 commit comments

Comments
 (0)