@airma/core
Advanced tools
Comparing version
@@ -8,15 +8,15 @@ export declare type Action = { | ||
export declare type Dispatch = (action: Action) => unknown; | ||
export declare type Dispatch = (action: Action) => any; | ||
export declare type AirModel<S> = { | ||
state: S; | ||
[key: string]: unknown; | ||
[key: string]: any; | ||
}; | ||
export declare interface AirModelInstance { | ||
[key: string]: unknown; | ||
[key: string]: any; | ||
} | ||
declare type ValidInstance<S,T extends AirModelInstance>={ | ||
[K in keyof T]:T[K] extends ((...args: unknown[]) => S)?T[K]:T[K] extends ((...args: unknown[]) => unknown)?never:T[K] | ||
[K in keyof T]:T[K] extends ((...args: any[]) => S)?T[K]:T[K] extends ((...args: any[]) => any)?never:T[K] | ||
}; | ||
@@ -23,0 +23,0 @@ |
@@ -7,3 +7,3 @@ { | ||
"name": "@airma/core", | ||
"version": "15.2.0", | ||
"version": "15.2.1", | ||
"description": "This is the core for agent-reducer and airma", | ||
@@ -10,0 +10,0 @@ "repository": { |
7212
-0.33%