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

Commit 53acd09

Browse files
committed
refactor(*): refactor due to type name change
1 parent 1b12d8d commit 53acd09

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/_internal/utils/hash.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { CustomCSSProperties, ClassesObjectType } from '..';
1+
import { CustomCSSProperties, CSSXStyleDefinition } from '..';
22

33
const chars = 'abcdefghijklmnopqrstuvwxyz0123456789';
44

@@ -25,7 +25,7 @@ function getStartingChar(hash: number): string {
2525
return chars[hash % chars.length];
2626
}
2727

28-
export function genBase36Hash(object: ClassesObjectType | CustomCSSProperties, n: number): string {
28+
export function genBase36Hash(object: CSSXStyleDefinition | CustomCSSProperties, n: number): string {
2929
const serialized = JSON.stringify(object);
3030
const hash = simpleHash(serialized);
3131
const base36Hash = encodeBase36(hash);

src/_internal/utils/helper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { ClassesObjectType, HasEPE, HasECE } from '..';
1+
import type { CSSXStyleDefinition, HasEPE, HasECE } from '..';
22
import htmlTags from './html-tags';
33

44
const isWindowDefined = typeof window !== 'undefined';
@@ -17,7 +17,7 @@ export const applyCssValue = (value: string | number, cssProp: string): string =
1717
return value;
1818
};
1919

20-
export const isClassesObjectType = (object: object): object is ClassesObjectType => {
20+
export const isClassesObjectType = (object: object): object is CSSXStyleDefinition => {
2121
return typeof object === 'object' && !Array.isArray(object);
2222
};
2323

0 commit comments

Comments
 (0)