File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ export declare class ThemeManager {
29
29
} ;
30
30
setItem ( key : string , value : string ) : void ;
31
31
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 ;
34
34
get components ( ) : Extendable ;
35
35
get forcedThemeComponents ( ) : Extendable ;
36
36
get primaryColor ( ) : string ;
Original file line number Diff line number Diff line change @@ -45,15 +45,15 @@ export class ThemeManager {
45
45
return _ . get ( this . theme , key ) ;
46
46
}
47
47
48
- setComponentTheme ( componentName : string , overrides : Dictionary < string | number > | Function ) {
48
+ setComponentTheme ( componentName : string , overrides : Dictionary < any > | Function ) {
49
49
if ( _ . isFunction ( overrides ) ) {
50
50
this . theme . components [ componentName ] = overrides ;
51
51
} else {
52
52
this . theme . components [ componentName ] = _ . cloneDeep ( overrides ) ;
53
53
}
54
54
}
55
55
56
- setComponentForcedTheme ( componentName : string , overrides : Dictionary < string > | Function ) {
56
+ setComponentForcedTheme ( componentName : string , overrides : Dictionary < any > | Function ) {
57
57
if ( _ . isFunction ( overrides ) ) {
58
58
this . forcedTheme . components [ componentName ] = overrides ;
59
59
} else {
You can’t perform that action at this time.
0 commit comments