File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,9 @@ import type { Readable } from 'stream';
7
7
// See https://github.com/shakacode/react_on_rails/issues/1321
8
8
// and https://redux.js.org/api/store for the actual API.
9
9
/* eslint-disable @typescript-eslint/no-explicit-any */
10
- type Store = unknown ;
10
+ type Store = {
11
+ getState ( ) : unknown ;
12
+ } ;
11
13
12
14
type ReactComponent = ComponentType < any > | string ;
13
15
@@ -171,7 +173,6 @@ export interface ReactOnRails {
171
173
/** @deprecated Use registerStoreGenerators instead */
172
174
registerStore ( stores : Record < string , StoreGenerator > ) : void ;
173
175
registerStoreGenerators ( storeGenerators : Record < string , StoreGenerator > ) : void ;
174
- // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
175
176
getStore ( name : string , throwIfMissing ?: boolean ) : Store | undefined ;
176
177
getOrWaitForStore ( name : string ) : Promise < Store > ;
177
178
getOrWaitForStoreGenerator ( name : string ) : Promise < StoreGenerator > ;
You can’t perform that action at this time.
0 commit comments