Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 02e8546

Browse files
committed
refactor(state): stronger typing
1 parent abfa68a commit 02e8546

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/state/src/lib/rx-state.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export function rxState<State extends object>(
4444

4545
destroyRef.onDestroy(() => legacyState.ngOnDestroy());
4646

47-
const state = {
47+
const state: RxState<State> = {
4848
get: legacyState.get.bind(legacyState),
4949
set: legacyState.set.bind(legacyState),
5050
connect: legacyState.connect.bind(legacyState),

0 commit comments

Comments
 (0)