UNPKG

@master/css-runtime

Version:

Run Master CSS right in the browser

16 lines (15 loc) 548 B
import { Layer, Rule, VariableRule } from '@master/css'; import CSSRuntime from './core'; export default class RuntimeLayer extends Layer { name: string; cssRuntime: CSSRuntime; readonly rules: Rule[]; readonly tokenCounts: Map<string, number>; native: CSSLayerBlockRule | null; constructor(name: string, cssRuntime: CSSRuntime); attach(): void; insert(rule: Rule | VariableRule, index?: number): number | undefined; detach(): void; delete(key: string): Rule | VariableRule | undefined; reset(): void; }