UNPKG

@compositive/foundation

Version:

Compositive framework foundation package.

11 lines 897 B
import type { StyleProperties } from "@compositive/primitives"; import type { UnknownTheme } from "../theming"; export declare type ThemedStyleProperties<T extends UnknownTheme> = { [X in keyof StyleProperties]: StyleProperties[X] | ((theme: T) => StyleProperties[X]); }; export declare type ThemedStylePropertiesGenerator<T extends UnknownTheme> = ThemedStyleProperties<T> | ((theme: T) => ThemedStyleProperties<T>); export declare type ResolvedThemedStyleProperties<T extends ThemedStyleProperties<any>> = { [X in keyof T]: T[X] extends (theme: any) => infer R ? R : T[X]; }; export declare type ResolvedThemedStylePropertiesGenerator<G extends ThemedStylePropertiesGenerator<any>> = G extends (theme: any) => infer R ? ResolvedThemedStyleProperties<R> : G extends ThemedStyleProperties<any> ? ResolvedThemedStyleProperties<G> : never; //# sourceMappingURL=ThemedStyleProperties.d.ts.map