Skip to content

Commit

Permalink
fix: type passing when set state
Browse files Browse the repository at this point in the history
  • Loading branch information
en9inerd committed Aug 12, 2024
1 parent e510feb commit b28291a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/states/base.state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export class BaseState {
return <T>(this._state.get(stateId)?.[key]);
}

public set(stateId: string, key: string, value: unknown): void {
public set<T>(stateId: string, key: string, value: T): void {
this._state.set(stateId, {
...this._state.get(stateId),
[key]: value
Expand Down

0 comments on commit b28291a

Please sign in to comment.