SvelteOptions Type — svelte Architecture
Architecture documentation for the SvelteOptions type/interface in index.d.ts from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD 07a71933_49a8_a639_6998_b20b0682c2fb["SvelteOptions"] 1e33f89d_f73d_0263_fc5f_07e98494dfac["index.d.ts"] 07a71933_49a8_a639_6998_b20b0682c2fb -->|defined in| 1e33f89d_f73d_0263_fc5f_07e98494dfac style 07a71933_49a8_a639_6998_b20b0682c2fb fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/types/index.d.ts lines 1224–1255
export interface SvelteOptions {
// start/end info (needed for warnings and for our Prettier plugin)
start: number;
end: number;
// options
runes?: boolean;
immutable?: boolean;
accessors?: boolean;
preserveWhitespace?: boolean;
namespace?: Namespace;
css?: 'injected';
customElement?: {
tag?: string;
shadow?: 'open' | 'none' | ObjectExpression | undefined;
props?: Record<
string,
{
attribute?: string;
reflect?: boolean;
type?: 'Array' | 'Boolean' | 'Number' | 'Object' | 'String';
}
>;
/**
* Is of type
* ```ts
* (ceClass: new () => HTMLElement) => new () => HTMLElement
* ```
*/
extend?: ArrowFunctionExpression | Identifier;
};
attributes: Attribute[];
}
Defined In
Source
Frequently Asked Questions
What is the SvelteOptions type?
SvelteOptions is a type/interface in the svelte codebase, defined in packages/svelte/types/index.d.ts.
Where is SvelteOptions defined?
SvelteOptions is defined in packages/svelte/types/index.d.ts at line 1224.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free