tpa-style-webpack-plugin
Version:
A Webpack plugin that handles wix tpa styles, it separates static css file that injects dynamic style at runtime.
21 lines (20 loc) • 815 B
TypeScript
export declare function isCssVar(key: string): boolean;
export declare function isJsonLike(value: any): boolean;
export declare function parseJson(strValue: string): {
theme: string;
size?: string;
lineHeight?: string;
style?: string;
weight: string;
};
export declare function isNumber(value: any): boolean;
export declare function forEach(obj: object, iteratee: (value: any, key: any) => void): void;
export declare function reduceObj(obj: object, iteratee: (acc: any, currentValue: {
key: string;
value: any;
}, index?: number) => object): object;
export declare function pickBy<T>(obj: object, predicate: (value: any) => boolean): {
[s: string]: T;
};
export declare function escapeHtml(str: string): string;
export declare function parenthesisAreBalanced(str: string): boolean;