Skip to content

Commit

Permalink
Change reset functions to be void returns
Browse files Browse the repository at this point in the history
  • Loading branch information
markerikson committed Nov 21, 2023
1 parent 8c9f3e8 commit fda51ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ export type OutputSelectorFields<
/**
* Resets the count of {@linkcode OutputSelectorFields.recomputations recomputations} count to 0.
*/
resetRecomputations: () => 0
resetRecomputations: () => void

/**
* Counts the number of times the input selectors ({@linkcode OutputSelectorFields.dependencies dependencies})
Expand All @@ -234,7 +234,7 @@ export type OutputSelectorFields<
*
* @since 5.0.0
*/
resetDependencyRecomputations: () => 0
resetDependencyRecomputations: () => void
} & Simplify<
Required<
Pick<
Expand Down
2 changes: 0 additions & 2 deletions test/reselect.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -806,8 +806,6 @@ describe('argsMemoize and memoize', () => {
).to.be.an('array').that.is.not.empty
expect(selectorMicroMemoize.recomputations()).to.be.a('number')
expect(selectorMicroMemoize.dependencyRecomputations()).to.be.a('number')
expect(selectorMicroMemoize.resetRecomputations()).toBe(0)
expect(selectorMicroMemoize.resetDependencyRecomputations()).toBe(0)
expect(selectorMicroMemoize.resultFunc).to.be.a('function')
expect(
selectorMicroMemoize.resultFunc([
Expand Down

0 comments on commit fda51ea

Please sign in to comment.