Skip to content

Commit

Permalink
fix(types): add missing Theme for Preflight (#1002)
Browse files Browse the repository at this point in the history
  • Loading branch information
equt committed May 24, 2022
1 parent da42fcb commit 7c38ca9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/core/src/types.ts
Expand Up @@ -182,8 +182,8 @@ export type Shortcut<Theme extends {} = {}> = StaticShortcut | DynamicShortcut<T

export type FilterPattern = ReadonlyArray<string | RegExp> | string | RegExp | null

export interface Preflight {
getCSS: (context: PreflightContext) => Promise<string | undefined> | string | undefined
export interface Preflight<Theme extends {} = {}> {
getCSS: (context: PreflightContext<Theme>) => Promise<string | undefined> | string | undefined
layer?: string
}

Expand Down Expand Up @@ -289,7 +289,7 @@ export interface ConfigBase<Theme extends {} = {}> {
/**
* Raw CSS injections.
*/
preflights?: Preflight[]
preflights?: Preflight<Theme>[]

/**
* Theme object for shared configuration between rules
Expand Down

0 comments on commit 7c38ca9

Please sign in to comment.