Files
Signal-Desktop/ts/Timers.preload.ts
2025-10-16 23:46:00 -07:00

19 lines
506 B
TypeScript

// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
const { timers } = window.SignalContext;
export type { Timeout } from './context/Timers.node.js';
export function setTimeout(
...args: Parameters<typeof timers.setTimeout>
): ReturnType<typeof timers.setTimeout> {
return timers.setTimeout(...args);
}
export function clearTimeout(
...args: Parameters<typeof timers.clearTimeout>
): ReturnType<typeof timers.clearTimeout> {
return timers.clearTimeout(...args);
}