Skip to content

Commit

Permalink
Merge pull request #226 from AyloSrd/quickfix-config-object-argument-…
Browse files Browse the repository at this point in the history
…is-supposed-to-be-optional

quickfix: config object is supposed to be optional
  • Loading branch information
thetarnav authored Oct 9, 2022
2 parents 887f616 + e3bdcfa commit a0915cc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/dull-baboons-kick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@solid-primitives/idle": patch
---

Make createIdleTimer options argumnet optional.
2 changes: 1 addition & 1 deletion packages/idle/src/createIdleTimer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a0915cc

Please sign in to comment.