Skip to content

Commit 5d69a78

Browse files
committed
Update ThemeManager API typing
1 parent 74180bf commit 5d69a78

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

generatedTypes/style/themeManager.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ export declare class ThemeManager {
2929
};
3030
setItem(key: string, value: string): void;
3131
getItem(key: string): any;
32-
setComponentTheme(componentName: string, overrides: Dictionary<string | number> | Function): void;
33-
setComponentForcedTheme(componentName: string, overrides: Dictionary<string> | Function): void;
32+
setComponentTheme(componentName: string, overrides: Dictionary<any> | Function): void;
33+
setComponentForcedTheme(componentName: string, overrides: Dictionary<any> | Function): void;
3434
get components(): Extendable;
3535
get forcedThemeComponents(): Extendable;
3636
get primaryColor(): string;

src/style/themeManager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,15 @@ export class ThemeManager {
4545
return _.get(this.theme, key);
4646
}
4747

48-
setComponentTheme(componentName: string, overrides: Dictionary<string | number> | Function) {
48+
setComponentTheme(componentName: string, overrides: Dictionary<any> | Function) {
4949
if (_.isFunction(overrides)) {
5050
this.theme.components[componentName] = overrides;
5151
} else {
5252
this.theme.components[componentName] = _.cloneDeep(overrides);
5353
}
5454
}
5555

56-
setComponentForcedTheme(componentName: string, overrides: Dictionary<string> | Function) {
56+
setComponentForcedTheme(componentName: string, overrides: Dictionary<any> | Function) {
5757
if (_.isFunction(overrides)) {
5858
this.forcedTheme.components[componentName] = overrides;
5959
} else {

0 commit comments

Comments
 (0)