Home / File/ types.d.ts — svelte Source File

types.d.ts — svelte Source File

Architecture documentation for types.d.ts, a typescript file in the svelte codebase. 3 imports, 0 dependents.

Entity Profile

Dependency Diagram

graph LR
  126d1e53_1684_ccd3_863f_e26adf6214ae["types.d.ts"]
  4440efa2_b84c_d186_53ca_534b0add2937["dev.js"]
  126d1e53_1684_ccd3_863f_e26adf6214ae --> 4440efa2_b84c_d186_53ca_534b0add2937
  25166256_49ce_81f2_0877_fdbc689bed91["renderer.js"]
  126d1e53_1684_ccd3_863f_e26adf6214ae --> 25166256_49ce_81f2_0877_fdbc689bed91
  f5793e80_d164_c844_3a93_786da8210d61["#shared"]
  126d1e53_1684_ccd3_863f_e26adf6214ae --> f5793e80_d164_c844_3a93_786da8210d61
  style 126d1e53_1684_ccd3_863f_e26adf6214ae fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import type { MaybePromise } from '#shared';
import type { Element } from './dev';
import type { Renderer } from './renderer';

export interface SSRContext {
	/** parent */
	p: null | SSRContext;
	/** component context */
	c: null | Map<unknown, unknown>;
	/** renderer */
	r: null | Renderer;
	/** dev mode only: the current component function */
	function?: any;
	/** dev mode only: the current element */
	element?: Element;
}

export type Csp = { nonce?: string; hash?: boolean };

export interface HydratableLookupEntry {
	value: unknown;
	serialized: string;
	promises?: Array<Promise<void>>;
	/** dev-only */
	stack?: string;
}

export interface HydratableContext {
	lookup: Map<string, HydratableLookupEntry>;
	comparisons: Promise<void>[];
	unresolved_promises: Map<Promise<string>, string>;
}

export interface RenderContext {
	hydratable: HydratableContext;
}

export type Sha256Source = `sha256-${string}`;

export interface SyncRenderOutput {
	/** HTML that goes into the `<head>` */
	head: string;
	/** @deprecated use `body` instead */
	html: string;
	/** HTML that goes somewhere into the `<body>` */
	body: string;
	hashes: {
		script: Sha256Source[];
	};
}

export type RenderOutput = SyncRenderOutput & PromiseLike<SyncRenderOutput>;

Domain

Dependencies

Frequently Asked Questions

What does types.d.ts do?
types.d.ts is a source file in the svelte codebase, written in typescript. It belongs to the ServerRuntime domain.
What does types.d.ts depend on?
types.d.ts imports 3 module(s): #shared, dev.js, renderer.js.
Where is types.d.ts in the architecture?
types.d.ts is located at packages/svelte/src/internal/server/types.d.ts (domain: ServerRuntime, directory: packages/svelte/src/internal/server).

Analyze Your Own Codebase

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

Try Supermodel Free