@re-flex/styles
Version:
Core Style Util Package
29 lines (28 loc) • 793 B
TypeScript
declare type SSR = {
data: string;
};
declare class RxUtils {
LINK_ID: string;
DOM_TARGET: HTMLHeadElement;
SSR: SSR;
sheet: Element;
renderCount: number;
nextRenderCount: number;
sheetData: any[];
cache: Map<string, string>;
constructor(linkID: string, target?: HTMLElement);
astish(val: string): {};
compile(str: string[], defs: object): string;
getSheet(): Element;
stringify(data: string | object): string;
hash(compiled: string | object, config: {
global?: boolean;
append?: boolean;
keyframes?: boolean;
}): string;
parse(obj: object, selector: string): string;
toHash(str: string): string;
extractCss(): string;
update(css: string, append: boolean): void;
}
export default RxUtils;