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

index.d.ts — svelte Source File

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

File typescript Compiler Transformer 6 imports 2 functions

Entity Profile

Dependency Diagram

graph LR
  d1a9b9b5_cc04_9500_c39a_435c606b0766["index.d.ts"]
  ee93d8a6_6fde_b1c1_e15b_3a4da5326305["scope.js"]
  d1a9b9b5_cc04_9500_c39a_435c606b0766 --> ee93d8a6_6fde_b1c1_e15b_3a4da5326305
  324b18f6_4777_c2be_15e5_b0b375426130["./template.js"]
  d1a9b9b5_cc04_9500_c39a_435c606b0766 --> 324b18f6_4777_c2be_15e5_b0b375426130
  266f0f82_b1c9_08bb_80b9_55a66e7d3dba["compile_diagnostic.js"]
  d1a9b9b5_cc04_9500_c39a_435c606b0766 --> 266f0f82_b1c9_08bb_80b9_55a66e7d3dba
  2aa63f4e_82c9_33e3_ac6c_5f3d46250522["utils.js"]
  d1a9b9b5_cc04_9500_c39a_435c606b0766 --> 2aa63f4e_82c9_33e3_ac6c_5f3d46250522
  6bc9684c_1a71_1bdf_8ee4_8d5d204604b3["magic-string"]
  d1a9b9b5_cc04_9500_c39a_435c606b0766 --> 6bc9684c_1a71_1bdf_8ee4_8d5d204604b3
  4291260f_9c68_db0f_e313_37187427eeb3["estree"]
  d1a9b9b5_cc04_9500_c39a_435c606b0766 --> 4291260f_9c68_db0f_e313_37187427eeb3
  style d1a9b9b5_cc04_9500_c39a_435c606b0766 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import type { SourceMap } from 'magic-string';
import type { Binding } from '../phases/scope.js';
import type { AST, Namespace } from './template.js';
import type { ICompileDiagnostic } from '../utils/compile_diagnostic.js';
import type { StateCreationRuneName } from '../../utils.js';
import type {
	AssignmentExpression,
	CallExpression,
	PrivateIdentifier,
	PropertyDefinition
} from 'estree';

/** The return value of `compile` from `svelte/compiler` */
export interface CompileResult {
	/** The compiled JavaScript */
	js: {
		/** The generated code */
		code: string;
		/** A source map */
		map: SourceMap;
	};
	/** The compiled CSS */
	css: null | {
		/** The generated code */
		code: string;
		/** A source map */
		map: SourceMap;
		/** Whether or not the CSS includes global rules */
		hasGlobal: boolean;
	};
	/**
	 * An array of warning objects that were generated during compilation. Each warning has several properties:
	 * - `code` is a string identifying the category of warning
	 * - `message` describes the issue in human-readable terms
	 * - `start` and `end`, if the warning relates to a specific location, are objects with `line`, `column` and `character` properties
	 */
	warnings: Warning[];
	/**
	 * Metadata about the compiled component
	 */
	metadata: {
		/**
		 * Whether the file was compiled in runes mode, either because of an explicit option or inferred from usage.
		 * For `compileModule`, this is always `true`
		 */
		runes: boolean;
	};
	/** The AST */
	ast: any;
}

export interface Warning extends ICompileDiagnostic {}

export interface CompileError extends ICompileDiagnostic {}

export type CssHashGetter = (args: {
	name: string;
	filename: string;
	css: string;
	hash: (input: string) => string;
// ... (250 more lines)

Domain

Subdomains

Functions

Dependencies

Frequently Asked Questions

What does index.d.ts do?
index.d.ts is a source file in the svelte codebase, written in typescript. It belongs to the Compiler domain, Transformer subdomain.
What functions are defined in index.d.ts?
index.d.ts defines 2 function(s): args, warning.
What does index.d.ts depend on?
index.d.ts imports 6 module(s): ./template.js, compile_diagnostic.js, estree, magic-string, scope.js, utils.js.
Where is index.d.ts in the architecture?
index.d.ts is located at packages/svelte/src/compiler/types/index.d.ts (domain: Compiler, subdomain: Transformer, directory: packages/svelte/src/compiler/types).

Analyze Your Own Codebase

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

Try Supermodel Free