UnoGenerator
class UnoGenerator<Theme extends object = object> { }
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,
extracted?: Set<string>,
): Promise<Set<string>>;applyExtractors(
code: string,
id?: string,
extracted?: CountableSet<string>,
): Promise<CountableSet<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: , options?: GenerateOptions<true>): Promise<GenerateResult<Map<string, ExtendedTokenInfo<Theme>>>>;
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
§
applyExtractors(code: string, id?: string, extracted?: Set<string>): Promise<Set<string>>
[src]applyExtractors(code: string, id?: string, extracted?: CountableSet<string>): Promise<CountableSet<string>>
[src]§
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> | CountableSet<string> | string[], options?: GenerateOptions<false>): Promise<GenerateResult<Set<string>>>
[src]generate(input: string | Set<string> | CountableSet<string> | string[], options?: GenerateOptions<true>): Promise<GenerateResult<Map<string, ExtendedTokenInfo<Theme>>>>
[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]