@airma/core
Advanced tools
Comparing version 15.0.4 to 15.0.5
@@ -17,8 +17,12 @@ export declare type Action = { | ||
state: S; | ||
[key: string]: ((...args: unknown[]) => S)|S|(Exclude<unknown,Function>); | ||
[key: string]: unknown; | ||
} | ||
declare type ValidInstance<S,T extends (AirModelInstance<S>)>={ | ||
[K in keyof T]:T[K] extends ((...args: unknown[]) => S)?T[K]:T[K] extends ((...args: unknown[]) => unknown)?never:T[K] | ||
}; | ||
export declare type AirReducer<S, T extends AirModelInstance<S>> = ( | ||
state: S | ||
) => T; | ||
) => ValidInstance<S,T>; | ||
@@ -25,0 +29,0 @@ export declare type Reducer<S, A> = (state: S, action: A) => S; |
@@ -7,3 +7,3 @@ { | ||
"name": "@airma/core", | ||
"version": "15.0.4", | ||
"version": "15.0.5", | ||
"description": "This is the core for agent-reducer and airma", | ||
@@ -10,0 +10,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7214
181