From b28291a55e44148d4e781f487325f2929b0b82b8 Mon Sep 17 00:00:00 2001 From: Vladimir <18351400+en9inerd@users.noreply.github.com> Date: Sun, 11 Aug 2024 23:32:28 -0400 Subject: [PATCH] fix: type passing when set state --- src/states/base.state.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/states/base.state.ts b/src/states/base.state.ts index 6be4b5d..1caa5f4 100644 --- a/src/states/base.state.ts +++ b/src/states/base.state.ts @@ -7,7 +7,7 @@ export class BaseState { return (this._state.get(stateId)?.[key]); } - public set(stateId: string, key: string, value: unknown): void { + public set(stateId: string, key: string, value: T): void { this._state.set(stateId, { ...this._state.get(stateId), [key]: value