preact
This commit is contained in:
parent
6acf267d48
commit
b7614eb3f8
4794 changed files with 1280808 additions and 1546 deletions
62
frontend/node_modules/preact/jsx-runtime/src/index.d.ts
generated
vendored
Normal file
62
frontend/node_modules/preact/jsx-runtime/src/index.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
// Intentionally not using a relative path to take advantage of
|
||||
// the TS version resolution mechanism
|
||||
export { Fragment } from 'preact';
|
||||
import {
|
||||
ComponentType,
|
||||
ComponentChild,
|
||||
ComponentChildren,
|
||||
VNode,
|
||||
Attributes
|
||||
} from 'preact';
|
||||
import { JSXInternal } from '../../src/jsx';
|
||||
|
||||
export function jsx(
|
||||
type: string,
|
||||
props: JSXInternal.HTMLAttributes &
|
||||
JSXInternal.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: JSXInternal.HTMLAttributes &
|
||||
JSXInternal.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: JSXInternal.HTMLAttributes &
|
||||
JSXInternal.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 };
|
||||
Loading…
Add table
Add a link
Reference in a new issue