MCPcopy Create free account
hub / github.com/amrlabib/react-timer-hook / onExpire

Method onExpire

src/utils/Validate.ts:10–16  ·  view source on GitHub ↗
(onExpire: () => void)

Source from the content-addressed store, hash-verified

8 }
9
10 static onExpire(onExpire: () => void) {
11 const isValid = onExpire && typeof onExpire === 'function';
12 if (onExpire && !isValid) {
13 console.warn('react-timer-hook: { useTimer } Invalid onExpire settings function', onExpire);
14 }
15 return isValid;
16 }
17}

Callers 1

useTimerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected