@sandlada/mdc
Version:
@sandlada/mdc is an open source component library that follows the Material Design 3 design specifications.
12 lines • 426 B
TypeScript
interface HasToCSSVariable {
ToCSSVariable: () => any;
}
type ResolvedStyle<T> = {
[K in keyof T]: T[K] extends HasToCSSVariable ? ReturnType<T[K]['ToCSSVariable']> : T[K];
};
type Prettify<T> = {
[K in keyof T]: T[K];
} & {};
export declare function createStyleDefinition<const T extends Record<string, any>>(record: T): Prettify<ResolvedStyle<T>>;
export {};
//# sourceMappingURL=create-style-definition.d.ts.map