Usage

Cancel a pending timer.

tsx
// Cancel a pending timer.
const reminder = setTimeout(() => console.log('Still there?'), 30_000);

// The user came back first: the reminder never shows.
clearTimeout(reminder);

Signatures

ts
(id: number | undefined): void

Parameters

NameTypeRequiredDescription
idnumberYes—

Returns

void

Generated from the public TypeScript declarations: signatures, props and defaults come from the checked source, descriptions from its JSDoc. No defaults are invented.