client.d.ts — astro Source File
Architecture documentation for client.d.ts, a typescript file in the astro codebase. 1 imports, 2 dependents.
Entity Profile
Dependency Diagram
graph LR 4db49436_6875_120a_1b60_e7ec50668b56["client.d.ts"] 0f49b6f2_8b44_baf8_7812_a8fa2dd0ca84["zod"] 4db49436_6875_120a_1b60_e7ec50668b56 --> 0f49b6f2_8b44_baf8_7812_a8fa2dd0ca84 d7a31d06_a0b8_be99_5eef_d1095ff6b791["astro-config-virtual-module.ts"] d7a31d06_a0b8_be99_5eef_d1095ff6b791 --> 4db49436_6875_120a_1b60_e7ec50668b56 aff72a40_d8d2_4a49_b1dd_211e41884b03["astro-i18n-virtual-module.ts"] aff72a40_d8d2_4a49_b1dd_211e41884b03 --> 4db49436_6875_120a_1b60_e7ec50668b56 style 4db49436_6875_120a_1b60_e7ec50668b56 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
/// <reference types="vite/types/import-meta.d.ts" />
/// <reference path="./types/actions.d.ts" />
/// <reference path="./types/content.d.ts" />
/// <reference path="./types/env.d.ts" />
/// <reference path="./types/fonts.d.ts" />
/// <reference path="./types/transitions.d.ts" />
interface ImportMetaEnv {
// TODO: remove in Astro 7
/**
* The prefix for Astro-generated asset links if the build.assetsPrefix config option is set. This can be used to create asset links not handled by Astro.
* @deprecated This will be removed in a future major version of Astro. Use `build.assetsPrefix` from `astro:config/server` instead.
*/
readonly ASSETS_PREFIX: string | Record<string, string>;
/**
* This is set to the site option specified in your project’s Astro config file.
*/
readonly SITE: string;
}
interface ImportMeta {
/**
* Astro and Vite expose environment variables through `import.meta.env`. For a complete list of the environment variables available, see the two references below.
*
* - [Astro reference](https://docs.astro.build/en/guides/environment-variables/#default-environment-variables)
* - [Vite reference](https://vite.dev/guide/env-and-mode.html#env-variables)
*/
readonly env: ImportMetaEnv;
}
declare module 'astro:assets' {
// Exporting things one by one is a bit cumbersome, not sure if there's a better way - erika, 2023-02-03
type AstroAssets = {
// getImage's type here is different from the internal function since the Vite module implicitly pass the service config
/**
* Get an optimized image and the necessary attributes to render it.
*
* **Example**
* ```astro
* ---
* import { getImage } from 'astro:assets';
* import originalImage from '../assets/image.png';
*
* const optimizedImage = await getImage({src: originalImage, width: 1280 });
* ---
* <img src={optimizedImage.src} {...optimizedImage.attributes} />
* ```
*
* This is functionally equivalent to using the `<Image />` component, as the component calls this function internally.
*/
getImage: (
options: import('./dist/assets/types.js').UnresolvedImageTransform,
) => Promise<import('./dist/assets/types.js').GetImageResult>;
imageConfig: import('./dist/types/public/config.js').AstroConfig['image'];
getConfiguredImageService: typeof import('./dist/assets/index.js').getConfiguredImageService;
inferRemoteSize: typeof import('./dist/assets/utils/index.js').inferRemoteSize;
Image: typeof import('./components/Image.astro').default;
Picture: typeof import('./components/Picture.astro').default;
Font: typeof import('./components/Font.astro').default;
// ... (471 more lines)
Domain
Subdomains
Functions
Classes
Types
Dependencies
- zod
Imported By
Source
Frequently Asked Questions
What does client.d.ts do?
client.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 client.d.ts?
client.d.ts defines 1 function(s): options.
What does client.d.ts depend on?
client.d.ts imports 1 module(s): zod.
What files import client.d.ts?
client.d.ts is imported by 2 file(s): astro-config-virtual-module.ts, astro-i18n-virtual-module.ts.
Where is client.d.ts in the architecture?
client.d.ts is located at packages/astro/client.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