We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88b288a commit 38cc2a6Copy full SHA for 38cc2a6
packages/svelte/src/internal/client/types.d.ts
@@ -230,9 +230,12 @@ export type Render = {
230
};
231
232
export type Raf = {
233
+ /** Alias for `requestAnimationFrame`, exposed in such a way that we can override in tests */
234
tick: (callback: (time: DOMHighResTimeStamp) => void) => any;
235
+ /** Alias for `performance.now()`, exposed in such a way that we can override in tests */
236
now: () => number;
- tasks: Set<any>;
237
+ /** A set of tasks that will run to completion, unless aborted */
238
+ tasks: Set<TaskEntry>;
239
240
241
export interface Task {
0 commit comments