UnoGenerator
class UnoGenerator<Theme extends {} = {}> { }
private _cache;
private applyVariants;
blocked: Set<string>;
config: ResolvedConfig<Theme>;
defaults: UserConfigDefaults<Theme>;
events: Emitter<{
config: (config: ResolvedConfig<Theme>) => void;
}>;parentOrders: Map<string, number>;
userConfig: UserConfig<Theme>;
version: string;
applyExtractors(
code: string,
id?: string,
set?: Set<string>,
): Promise<Set<string>>;constructCustomCSS(
context: Readonly<RuleContext<Theme>>,
body: CSSObject | CSSEntries,
overrideSelector?: string,
): string;expandShortcut(
input: string,
context: RuleContext<Theme>,
depth?: number,
): Promise<[ShortcutValue[], RuleMeta | undefined] | undefined>;generate(input: string | Set<string> | string[], options?: GenerateOptions): Promise<GenerateResult>;
isBlocked(raw: string): boolean;
parseUtil(
input: string | VariantMatchedResult<Theme>,
context: RuleContext<Theme>,
internal?: boolean,
shortcutPrefix?: string | string[] | undefined,
): Promise<(ParsedUtil | RawUtil)[] | undefined>;stringifyShortcuts(
parent: VariantMatchedResult<Theme>,
context: RuleContext<Theme>,
expanded: ShortcutValue[],
meta?: RuleMeta,
): Promise<StringifiedUtil<Theme>[] | undefined>;stringifyUtil(parsed?: ParsedUtil | RawUtil, context?: RuleContext<Theme>): StringifiedUtil<Theme> | undefined;
§Properties
§
config: ResolvedConfig<Theme>
[src]§
defaults: UserConfigDefaults<Theme>
[src]§
events: Emitter<{
[src]config: (config: ResolvedConfig<Theme>) => void;
}>§
userConfig: UserConfig<Theme>
[src]§Methods
§
constructCustomCSS(context: Readonly<RuleContext<Theme>>, body: CSSObject | CSSEntries, overrideSelector?: string): string
[src]§
expandShortcut(input: string, context: RuleContext<Theme>, depth?: number): Promise<[ShortcutValue[], RuleMeta | undefined] | undefined>
[src]§
generate(input: string | Set<string> | string[], options?: GenerateOptions): Promise<GenerateResult>
[src]§
parseUtil(input: string | VariantMatchedResult<Theme>, context: RuleContext<Theme>, internal?: boolean, shortcutPrefix?: string | string[] | undefined): Promise<(ParsedUtil | RawUtil)[] | undefined>
[src]§
stringifyShortcuts(parent: VariantMatchedResult<Theme>, context: RuleContext<Theme>, expanded: ShortcutValue[], meta?: RuleMeta): Promise<StringifiedUtil<Theme>[] | undefined>
[src]§
stringifyUtil(parsed?: ParsedUtil | RawUtil, context?: RuleContext<Theme>): StringifiedUtil<Theme> | undefined
[src]