Home / File/ env.d.ts — astro Source File

env.d.ts — astro Source File

Architecture documentation for env.d.ts, a typescript file in the astro codebase.

File typescript CoreAstro RenderingEngine 1 functions 3 classes

Entity Profile

Relationship Graph

Source Code

/// <reference path="./client.d.ts" />

// Caution! The types here are only available inside Astro files (injected automatically by our language server)
// As such, if the typings you're trying to add should be available inside ex: React components, they should instead
// be inside `client.d.ts`

type Astro = import('./dist/types/public/context.js').AstroGlobal;

// We have to duplicate the description here because editors won't show the JSDoc comment from the imported type
// However, they will for its properties, ex: Astro.request will show the AstroGlobal.request description
/**
 * Astro global available in all contexts in .astro files
 *
 * [Astro documentation](https://docs.astro.build/en/reference/api-reference/)
 */
declare const Astro: Readonly<Astro>;

declare const Fragment: any;

declare module '*.html' {
	const Component: (opts?: { slots?: Record<string, string> }) => string;
	export default Component;
}

Domain

Subdomains

Functions

Types

Frequently Asked Questions

What does env.d.ts do?
env.d.ts is a source file in the astro codebase, written in typescript. It belongs to the CoreAstro domain, RenderingEngine subdomain.
What functions are defined in env.d.ts?
env.d.ts defines 1 function(s): opts.
Where is env.d.ts in the architecture?
env.d.ts is located at packages/astro/env.d.ts (domain: CoreAstro, subdomain: RenderingEngine, directory: packages/astro).

Analyze Your Own Codebase

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

Try Supermodel Free