Home / File/ astro-jsx.d.ts — astro Source File

astro-jsx.d.ts — astro Source File

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

File typescript 1 classes

Entity Profile

Relationship Graph

Source Code

/// <reference lib="dom" />
/* eslint @typescript-eslint/no-unused-vars: off */
/**
 * Adapted from babel-plugin-react-html-attrs's TypeScript definition from DefinitelyTyped.
 * @see https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/babel-plugin-react-html-attrs/index.d.ts
 *
 * and
 *
 * Adapted from React’s TypeScript definition from DefinitelyTyped.
 * @see https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/react/index.d.ts
 */
declare namespace astroHTML.JSX {
	export type Child = Node | Node[] | string | number | boolean | null | undefined | unknown;
	export type Children = Child | Child[];

	interface ElementChildrenAttribute {
		// eslint-disable-next-line @typescript-eslint/no-empty-object-type
		children: {};
	}

	interface IntrinsicAttributes extends AstroBuiltinProps, AstroBuiltinAttributes {
		slot?: string;
		children?: Children;
	}

	interface AstroBuiltinProps {
		'client:load'?: boolean;
		'client:idle'?: boolean;
		'client:media'?: string;
		'client:visible'?: boolean;
		'client:only'?: boolean | string;
	}

	interface AstroBuiltinAttributes {
		'class:list'?:
			| Record<string, boolean>
			| Record<any, any>
			| Iterable<string>
			| Iterable<any>
			| string;
		'set:html'?: any;
		'set:text'?: any;
		'is:raw'?: boolean;
	}

	interface AstroDefineVarsAttribute {
		'define:vars'?: any;
	}

	interface AstroStyleAttributes extends AstroDefineVarsAttribute {
		/** @deprecated Use `is:global` instead */
		global?: boolean;
		'is:global'?: boolean;
		'is:inline'?: boolean;
	}

	interface AstroScriptAttributes extends AstroDefineVarsAttribute {
		/** @deprecated Hoist is now the default behavior */
		hoist?: boolean;
		'is:inline'?: boolean;
// ... (1438 more lines)

Classes

Frequently Asked Questions

What does astro-jsx.d.ts do?
astro-jsx.d.ts is a source file in the astro codebase, written in typescript.
Where is astro-jsx.d.ts in the architecture?
astro-jsx.d.ts is located at packages/language-tools/language-server/types/astro-jsx.d.ts (directory: packages/language-tools/language-server/types).

Analyze Your Own Codebase

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

Try Supermodel Free