@xypnox/themescura
Version:
A design system and theme engine toolkit
6 lines (5 loc) • 424 B
TypeScript
export declare const forObjectReplace: <T extends Record<string, any>, Y>(obj: T, replace: (keys: string[], value: any) => Y) => T;
export declare const flattenObject: <T extends Record<string, any>>(theme: T, newKey: (keys: string[], value: any) => [string, any]) => {
[key: string]: any;
};
export declare const deepMerge: <T extends Record<string, any>, U extends Record<string, any>>(theme1: T, theme2: U) => T & U;