index.d.ts — svelte Source File
Architecture documentation for index.d.ts, a typescript file in the svelte codebase. 2 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR f55bc4ed_83ff_717c_bd11_2047823778ee["index.d.ts"] 681842b4_5af0_c3ea_17c6_340cc0309def["#server"] f55bc4ed_83ff_717c_bd11_2047823778ee --> 681842b4_5af0_c3ea_17c6_340cc0309def 4ead6623_c53e_ab40_5690_64903d5addf1["svelte"] f55bc4ed_83ff_717c_bd11_2047823778ee --> 4ead6623_c53e_ab40_5690_64903d5addf1 style f55bc4ed_83ff_717c_bd11_2047823778ee fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import type { Csp, RenderOutput } from '#server';
import type { ComponentProps, Component, SvelteComponent, ComponentType } from 'svelte';
/**
* Only available on the server and when compiling with the `server` option.
* Takes a component and returns an object with `body` and `head` properties on it, which you can use to populate the HTML when server-rendering your app.
*/
export function render<
Comp extends SvelteComponent<any> | Component<any>,
Props extends ComponentProps<Comp> = ComponentProps<Comp>
>(
...args: {} extends Props
? [
component: Comp extends SvelteComponent<any> ? ComponentType<Comp> : Comp,
options?: {
props?: Omit<Props, '$$slots' | '$$events'>;
context?: Map<any, any>;
idPrefix?: string;
csp?: Csp;
}
]
: [
component: Comp extends SvelteComponent<any> ? ComponentType<Comp> : Comp,
options: {
props: Omit<Props, '$$slots' | '$$events'>;
context?: Map<any, any>;
idPrefix?: string;
csp?: Csp;
}
]
): RenderOutput;
Dependencies
- #server
- svelte
Source
Frequently Asked Questions
What does index.d.ts do?
index.d.ts is a source file in the svelte codebase, written in typescript.
What does index.d.ts depend on?
index.d.ts imports 2 module(s): #server, svelte.
Where is index.d.ts in the architecture?
index.d.ts is located at packages/svelte/src/server/index.d.ts (directory: packages/svelte/src/server).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free