From 9ad5be6e0ec8e2a50092a5d5d036eca79e4142c1 Mon Sep 17 00:00:00 2001 From: AyloSrd <63412199+AyloSrd@users.noreply.github.com> Date: Sat, 8 Oct 2022 09:14:47 +0200 Subject: [PATCH 1/2] quickfix: config object is supposed to be optional --- packages/idle/src/createIdleTimer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/idle/src/createIdleTimer.ts b/packages/idle/src/createIdleTimer.ts index 530704894..d108ed714 100644 --- a/packages/idle/src/createIdleTimer.ts +++ b/packages/idle/src/createIdleTimer.ts @@ -46,7 +46,7 @@ export const createIdleTimer = ({ onIdle, onPrompt, startManually = false -}: IdleTimerOptions): IdleTimerReturn => { +}: IdleTimerOptions = {}): IdleTimerReturn => { let listenersAreOn = false; const [isPrompted, setIsPrompted] = createSignal(false); const [isIdle, setIsIdle] = createSignal(false); From e3bdcfa0f14d1c44b644662e946348e3e42fe4d0 Mon Sep 17 00:00:00 2001 From: Damian Tarnawski Date: Sun, 9 Oct 2022 22:33:26 +0200 Subject: [PATCH 2/2] Create dull-baboons-kick.md --- .changeset/dull-baboons-kick.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/dull-baboons-kick.md diff --git a/.changeset/dull-baboons-kick.md b/.changeset/dull-baboons-kick.md new file mode 100644 index 000000000..cb69d0572 --- /dev/null +++ b/.changeset/dull-baboons-kick.md @@ -0,0 +1,5 @@ +--- +"@solid-primitives/idle": patch +--- + +Make createIdleTimer options argumnet optional.