Skip to content

Commit 86f8497

Browse files
committed
Fix ThemeManager.setItem typings
1 parent 72acbb8 commit 86f8497

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

generatedTypes/style/themeManager.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export declare class ThemeManager {
2727
dividerColor: string;
2828
components: Extendable;
2929
};
30-
setItem(key: string, value: string): void;
30+
setItem(key: string, value: any): void;
3131
getItem(key: string): any;
3232
setComponentTheme(componentName: string, overrides: Dictionary<any> | Function): void;
3333
setComponentForcedTheme(componentName: string, overrides: Dictionary<any> | Function): void;

src/style/themeManager.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export class ThemeManager {
3232
return this.theme;
3333
}
3434

35-
setItem(key: string, value: string) {
35+
setItem(key: string, value: any) {
3636
if (key === 'components') {
3737
throw new Error('Overriding the "components" key is not possible.');
3838
}

0 commit comments

Comments
 (0)