/
githubmirror
/
preact
Обзор
Документация
Войти
/
githubmirror
/
preact
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
jsx-runtime/src/index.d.ts
62 строки
1 KB
Ryan Christian
refactor: Revert back to normal TS resolution for core types (#5010)
12 фев 2026, 09:24
Не верифицирован
12 фев 2026, 09:24
5ed7d20
Код
Авторство
О чём код?
export { Fragment } from '../../src/index'; import { ComponentType, ComponentChild, ComponentChildren, VNode, Attributes, HTMLAttributes, SVGAttributes } from '../../src/index'; import { JSXInternal } from '../../src/jsx'; export function jsx( type: string, props: HTMLAttributes & SVGAttributes & Record<string, any> & { children?: ComponentChild }, key?: string ): VNode<any>; export function jsx<P>( type: ComponentType<P>, props: Attributes & P & { children?: ComponentChild }, key?: string ): VNode<any>; export function jsxs( type: string, props: HTMLAttributes & SVGAttributes & Record<string, any> & { children?: ComponentChild[] }, key?: string ): VNode<any>; export function jsxs<P>( type: ComponentType<P>, props: Attributes & P & { children?: ComponentChild[] }, key?: string ): VNode<any>; export function jsxDEV( type: string, props: HTMLAttributes & SVGAttributes & Record<string, any> & { children?: ComponentChildren }, key?: string ): VNode<any>; export function jsxDEV<P>( type: ComponentType<P>, props: Attributes & P & { children?: ComponentChildren }, key?: string ): VNode<any>; // These are not expected to be used manually, but by a JSX transform export function jsxTemplate( template: string[], ...expressions: any[] ): VNode<any>; export function jsxAttr(name: string, value: any): string | null; export function jsxEscape<T>( value: T ): string | null | VNode<any> | Array<string | null | VNode>; export { JSXInternal as JSX };