as-model 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +3 -3
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -89,14 +89,14 @@ export declare interface Config {
|
|
|
89
89
|
/** createStore * */
|
|
90
90
|
|
|
91
91
|
export declare interface StoreIndex<
|
|
92
|
-
M extends Model,
|
|
93
|
-
R extends undefined | ((instance: () => Instance<M>) => any) =
|
|
92
|
+
M extends Model = any,
|
|
93
|
+
R extends undefined | ((instance: () => Instance<M>) => any) = any
|
|
94
94
|
> {
|
|
95
95
|
key: Key<M, R>;
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
export declare interface Store<
|
|
99
|
-
M extends Model,
|
|
99
|
+
M extends Model = any,
|
|
100
100
|
R extends undefined | ((instance: () => Instance<M>) => any) = undefined
|
|
101
101
|
> extends StoreIndex<M, R> {
|
|
102
102
|
subscribe: (dispatcher: Dispatch) => () => void;
|