From bdf5a4ec835bb0a7d480eccafc726e6ea607475c Mon Sep 17 00:00:00 2001 From: Harrison Ifeanyichukwu Date: Sun, 15 Oct 2023 14:09:55 +0200 Subject: [PATCH] fix: make opts optional --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 28b73fa..7f01865 100644 --- a/src/index.ts +++ b/src/index.ts @@ -32,7 +32,7 @@ export interface CreateEffectCleanerOpts { */ export const createEffectCleaner = ( stateModifiers: T, - opts: CreateEffectCleanerOpts + opts?: CreateEffectCleanerOpts ) => { let _stalled = false; const { abortController, cancelTokenSource, intervalIds, timeoutIds } =