UNPKG

effcss

Version:

Self-confident CSS-in-JS

11 lines (10 loc) 718 B
type TStrOrNum = string | number; type TJoinArr = (...val: any[]) => string; export declare const range: (size: number, handler: (k: number) => object) => object; export declare const each: <V extends Record<TStrOrNum, any>>(rules: V, handler: (k: V extends ArrayLike<any> ? string : keyof V, v: V extends ArrayLike<any> ? NoInfer<V[number]> : NoInfer<V[keyof V]>) => object) => object; export declare const when: (condition: number | boolean | undefined | null, rules: object, otherwise?: object) => object; export declare const dash: TJoinArr; export declare const comma: TJoinArr; export declare const space: TJoinArr; export declare const merge: (target: Record<string, any>, ...sources: any[]) => any; export {};