UNPKG

@tdb/web

Version:

Common condiguration for serving a web-site and testing web-based UI components.

50 lines (41 loc) 861 B
declare enum Context { POSTS = -2, PREPS = -1, UNKWN = 0, PROPS = 1, BLCKS = 2, ATRUL = 3 } interface Stylis { new(options?: Options): Stylis (namescope: string, input: string): string | any set: Set use: Use } interface Options { keyframe?: boolean global?: boolean cascade?: boolean compress?: boolean prefix?: boolean | ((key: string, value: string, context: number) => boolean) semicolon?: boolean preserve?: boolean } type Set = (options?: Options) => Set type Plugin = (this: Stylis, context: Context, content: string, selector: Selectors, parent: Selectors, line: number, column: number, length: number, at: number, depth: number) => any type Use = (plugin?: Plugin[] | Plugin | null) => Use type Selectors = string[] declare const stylis: Stylis export = stylis declare global { export const stylis: Stylis }