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

Commit e2d31eb

Browse files
committed
fix(classess-object-type.ts): Fix excessive type definitions
1 parent 0e12deb commit e2d31eb

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

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

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
11
import type { CustomCSSProperties } from './custom-css-properties';
22
import { MediaQuery } from './custom-html-type';
33

4-
export type ClassesObjectType =
5-
| {
6-
[key in MediaQuery]:
7-
| CustomCSSProperties
8-
| {
9-
[className: string]: CustomCSSProperties;
10-
};
11-
}
12-
| {
13-
[className: string]: CustomCSSProperties;
14-
};
4+
export type ClassesObjectType = {
5+
[key in MediaQuery]: {
6+
[className: string]: CustomCSSProperties;
7+
};
8+
};
159

1610
type Exact<T, U> = T extends U ? T : never;
1711

0 commit comments

Comments
 (0)