Home / Type/ Raf Type — svelte Architecture

Raf Type — svelte Architecture

Architecture documentation for the Raf type/interface in types.d.ts from the svelte codebase.

Entity Profile

Dependency Diagram

graph TD
  f69bd8ce_68bc_9c8d_2f93_9c5d19ac28e9["Raf"]
  81013f80_b5c2_1ec2_be08_8c26dac8438e["types.d.ts"]
  f69bd8ce_68bc_9c8d_2f93_9c5d19ac28e9 -->|defined in| 81013f80_b5c2_1ec2_be08_8c26dac8438e
  style f69bd8ce_68bc_9c8d_2f93_9c5d19ac28e9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/src/internal/client/types.d.ts lines 168–175

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

Frequently Asked Questions

What is the Raf type?
Raf is a type/interface in the svelte codebase, defined in packages/svelte/src/internal/client/types.d.ts.
Where is Raf defined?
Raf is defined in packages/svelte/src/internal/client/types.d.ts at line 168.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free