Skip to content

Commit 38cc2a6

Browse files
committed
add some more docs
1 parent 88b288a commit 38cc2a6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/svelte/src/internal/client/types.d.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,12 @@ export type Render = {
230230
};
231231

232232
export type Raf = {
233+
/** Alias for `requestAnimationFrame`, exposed in such a way that we can override in tests */
233234
tick: (callback: (time: DOMHighResTimeStamp) => void) => any;
235+
/** Alias for `performance.now()`, exposed in such a way that we can override in tests */
234236
now: () => number;
235-
tasks: Set<any>;
237+
/** A set of tasks that will run to completion, unless aborted */
238+
tasks: Set<TaskEntry>;
236239
};
237240

238241
export interface Task {

0 commit comments

Comments
 (0)