Skip to content
0

katanakit-js / ManagedTimerId

Type Alias: ManagedTimerId ​

ts
type ManagedTimerId = 
  | number
  | {
  [toPrimitive]: () => number;
};

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

Wrapping setTimeout is awkward from a typing perspective because platform typings may extend the return type of setTimeout. For example, NodeJS typings add NodeJS.Timeout; but a non-default timeoutManager may not be able to return such a type.

Released under the MIT License.