Skip to content

Commit

Permalink
Fiddle with argsmemoize typetests
Browse files Browse the repository at this point in the history
  • Loading branch information
markerikson committed Dec 1, 2023
1 parent a03173f commit 68a8f77
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions typescript_test/argsMemoize.typetest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,19 +260,7 @@ function overrideOnlyArgsMemoizeInCreateSelector() {
argsMemoizeOptions: [{ maxSize: 2 }]
}
)
const selectorWeakMapSeparateInlineArgsWithMemoizeOptions4 =
createSelectorDefaultMemoize(
// @ts-expect-error
(state: RootState) => state.todos,
// @ts-expect-error
todos => todos.map(t => t.id),
{
memoizeOptions: [{ isPromise: false }],
argsMemoizeOptions:
// @ts-expect-error
(a, b) => a === b
}
)

const selectorWeakMapSeparateInlineArgsWithMemoizeOptions5 =
// @ts-expect-error
createSelectorDefaultMemoize(
Expand Down

0 comments on commit 68a8f77

Please sign in to comment.