Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit f10e00e

Browse files
committed
fix(types): Fix ExactClassesObjectType
1 parent 8f62047 commit f10e00e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/_internal/types/custom/classes-object-type.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@ export type ClassesObjectType = {
44
[className: string]: CustomCSSProperties;
55
};
66

7-
export type ExactClassesObjectType<T extends Record<string, CustomCSSProperties>> = T;
7+
type Exact<T, U> = T extends U ? T : never;
8+
9+
export type ExactClassesObjectType<T> = {
10+
[K in keyof T | string]: K extends keyof T ? Exact<T[K], CustomCSSProperties> : CustomCSSProperties;
11+
};

0 commit comments

Comments
 (0)