Skip to content

Commit 9546dbd

Browse files
authored
fix #661 | missing typings (#662)
1 parent c8d017f commit 9546dbd

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

typings/style/colors.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ export interface HSLValue {
8585
}
8686

8787
export declare class ColorsClass {
88+
loadColors(colors: object): void;
8889
rgba(p1: string | number, p2: number, p3: number, p4: number): ColorValue;
8990
isEmpty(color: ColorValue): boolean;
9091
getColorTint(color: ColorValue, tintKey: number): any;

typings/style/spacings.d.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,8 @@ type SpacingName =
1111
| 's9'
1212
| 's10';
1313

14-
export const Spacings: Readonly<Record<SpacingName, number>>;
14+
export declare class SpacingsClass {
15+
loadSpacings(spacings: object): void;
16+
}
17+
18+
export const Spacings: SpacingsClass & Readonly<Record<SpacingName, number>>;

typings/style/typography.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export type TypographyName =
1818
| 'text100';
1919

2020
export declare class TypographyClass {
21+
loadTypographies(typographies: object): void;
2122
measureWidth(
2223
text: string,
2324
typography?: TypographyDescription,
@@ -27,7 +28,7 @@ export declare class TypographyClass {
2728
text: string,
2829
typography?: TypographyDescription,
2930
containerWidth?: number
30-
): Promise<{heigth: number, width: number}>;
31+
): Promise<{height: number, width: number}>;
3132
}
3233

3334
export const Typography: TypographyClass & Readonly<Record<TypographyName, TypographyDescription>>;

0 commit comments

Comments
 (0)