Skip to content

Commit

Permalink
fix: make opts optional
Browse files Browse the repository at this point in the history
  • Loading branch information
teclone committed Oct 15, 2023
1 parent 1b255da commit bdf5a4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export interface CreateEffectCleanerOpts {
*/
export const createEffectCleaner = <T>(
stateModifiers: T,
opts: CreateEffectCleanerOpts
opts?: CreateEffectCleanerOpts
) => {
let _stalled = false;
const { abortController, cancelTokenSource, intervalIds, timeoutIds } =
Expand Down

0 comments on commit bdf5a4e

Please sign in to comment.