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 @@ -22,7 +22,7 @@ export const ConfigContext = createContext(null);
22
22
export interface Config {
23
23
// a reference to the current Grid.js instance
24
24
instance : Grid ;
25
- store : Store < unknown > ;
25
+ store : Store ;
26
26
eventEmitter : EventEmitter < GridEvents > ;
27
27
plugin : PluginManager ;
28
28
/** container element that is used to mount the Grid.js to */
@@ -117,7 +117,7 @@ export class Config {
117
117
return this ;
118
118
}
119
119
120
- static defaultConfig ( ) : Config {
120
+ static defaultConfig ( ) : Partial < Config > {
121
121
return {
122
122
store : new Store ( {
123
123
status : Status . Init ,
@@ -131,7 +131,7 @@ export class Config {
131
131
autoWidth : true ,
132
132
style : { } ,
133
133
className : { } ,
134
- } as Config ;
134
+ } ;
135
135
}
136
136
137
137
static fromPartialConfig ( partialConfig : Partial < Config > ) : Partial < Config > {
Original file line number Diff line number Diff line change 1
- export class Store < S > {
1
+ export class Store < S = Record < string , unknown > > {
2
2
private state : S ;
3
3
private listeners : ( ( ) => void ) [ ] = [ ] ;
4
4
private isDispatching = false ;
You can’t perform that action at this time.
0 commit comments