Module

x/aleph/server/deps.ts>UnoGenerator

The Full-stack Framework in Deno.
Go to Latest
class UnoGenerator
import { UnoGenerator } from "https://dotland.deno.dev/x/aleph@1.0.0-beta.15/server/deps.ts";

Constructors

new
UnoGenerator(userConfig?: UserConfig, defaults?: UserConfigDefaults)

Properties

private
_cache
private
applyVariants
blocked: Set<string>
config: ResolvedConfig
defaults: UserConfigDefaults
events: Emitter<{ config: (config: ResolvedConfig) => void; }>
parentOrders: Map<string, number>
userConfig: UserConfig
version: string

Methods

applyExtractors(
code: string,
id?: string,
set?: Set<string>,
): Promise<Set<string>>
constructCustomCSS(
context: Readonly<RuleContext>,
body: CSSObject | CSSEntries,
overrideSelector?: string,
): string
expandShortcut(
input: string,
context: RuleContext,
depth?: number,
): [ShortcutValue[], RuleMeta | undefined] | undefined
generate(input: string | Set<string> | string[], options?: GenerateOptions): Promise<GenerateResult>
isBlocked(raw: string): boolean
makeContext(raw: string, applied: VariantMatchedResult): RuleContext<{ }>
matchVariants(raw: string, current?: string): VariantMatchedResult
parseToken(raw: string, alias?: string): Promise<StringifiedUtil[] | null | undefined>
parseUtil(
input: string | VariantMatchedResult,
context: RuleContext,
internal?: boolean,
): Promise<(ParsedUtil | RawUtil)[] | undefined>
setConfig(userConfig?: UserConfig, defaults?: UserConfigDefaults): void
stringifyShortcuts(
parent: VariantMatchedResult,
context: RuleContext,
expanded: ShortcutValue[],
meta?: RuleMeta,
): Promise<StringifiedUtil[] | undefined>
stringifyUtil(parsed?: ParsedUtil | RawUtil, context?: RuleContext): StringifiedUtil | undefined