fix(types,testing): tighten action context typing and update tests for stricter TypeScript checks

This commit is contained in:
2026-04-30 09:58:42 +00:00
parent a66518bde8
commit a62fa83afc
9 changed files with 97 additions and 18706 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ export interface IActionContext<TStateType> {
}
export interface IActionDef<TStateType, TActionPayloadType> {
(stateArg: StatePart<any, TStateType>, actionPayload: TActionPayloadType, context?: IActionContext<TStateType>): Promise<TStateType>;
(stateArg: StatePart<any, TStateType>, actionPayload: TActionPayloadType, context: IActionContext<TStateType>): Promise<TStateType>;
}
/**