Skip to content
0

katanakit-js / TimeoutCallback

Type Alias: TimeoutCallback ​

ts
type TimeoutCallback = (_) => void;

Defined in: node_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/timeoutManager.d.ts:10

TimeoutManager does not support passing arguments to the callback.

(_: void) is the argument type inferred by TypeScript's default typings for setTimeout(cb, number). If we don't accept a single void argument, then new Promise(resolve => timeoutManager.setTimeout(resolve, N)) is a type error.

Parameters ​

ParameterType
_void

Returns ​

void

Released under the MIT License.