Skip to content

Commit 9611415

Browse files
fix(entity): set correct input argument types for removeMutably methods (#3148)
1 parent c2f0049 commit 9611415

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/entity/src/unsorted_state_adapter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,12 @@ export function createUnsortedStateAdapter<T>(selectId: IdSelector<T>): any {
8585
}
8686
}
8787

88-
function removeOneMutably(key: T, state: R): DidMutate;
88+
function removeOneMutably(key: string | number, state: R): DidMutate;
8989
function removeOneMutably(key: any, state: any): DidMutate {
9090
return removeManyMutably([key], state);
9191
}
9292

93-
function removeManyMutably(keys: T[], state: R): DidMutate;
93+
function removeManyMutably(keys: string[] | number[], state: R): DidMutate;
9494
function removeManyMutably(predicate: Predicate<T>, state: R): DidMutate;
9595
function removeManyMutably(
9696
keysOrPredicate: any[] | Predicate<T>,

0 commit comments

Comments
 (0)