@airma/core
Advanced tools
Comparing version 15.0.6 to 15.1.0
@@ -42,7 +42,5 @@ export declare type Action = { | ||
export type FirstParam<T extends (param:any)=>any>=T extends (param:infer P)=>any?P:never; | ||
export declare function createModel<S, T extends AirModelInstance>( | ||
export declare function createModel<S, T extends AirModelInstance, D extends S>( | ||
reducer: AirReducer<S, T>, | ||
defaultState:FirstParam<typeof reducer> | ||
defaultState:D | ||
): ActualReducer<S, T>; | ||
@@ -49,0 +47,0 @@ |
@@ -7,3 +7,3 @@ { | ||
"name": "@airma/core", | ||
"version": "15.0.6", | ||
"version": "15.1.0", | ||
"description": "This is the core for agent-reducer and airma", | ||
@@ -10,0 +10,0 @@ "repository": { |
7159
179