From 7c38ca9fcbf0e5ff5eabfd5e74602694a34d097e Mon Sep 17 00:00:00 2001 From: equt <17521736+equt@users.noreply.github.com> Date: Tue, 24 May 2022 09:29:20 +0800 Subject: [PATCH] fix(types): add missing `Theme` for `Preflight` (#1002) --- packages/core/src/types.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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