diff --git a/packages/core/src/types.ts b/packages/core/src/types.ts index 20d7c28418..3c4385ef7e 100644 --- a/packages/core/src/types.ts +++ b/packages/core/src/types.ts @@ -182,8 +182,8 @@ export type Shortcut = StaticShortcut | DynamicShortcut | string | RegExp | null -export interface Preflight { - getCSS: (context: PreflightContext) => Promise | string | undefined +export interface Preflight { + getCSS: (context: PreflightContext) => Promise | string | undefined layer?: string } @@ -289,7 +289,7 @@ export interface ConfigBase { /** * Raw CSS injections. */ - preflights?: Preflight[] + preflights?: Preflight[] /** * Theme object for shared configuration between rules