Dev Build / cleanup (push) Canceled after 0s
Dev Build / typecheck (push) Canceled after 0s
Dev Build / build (linux-arm64, ubuntu-24.04-arm, linux-arm64) (push) Canceled after 0s
Dev Build / build (linux-x64, ubuntu-latest, linux-x64) (push) Canceled after 0s
Dev Build / build (win-x64, windows-latest, win32-x64) (push) Canceled after 0s
Dev Build / dispatch-dev-docker (push) Skipped
35 lines
1.3 KiB
Plaintext
35 lines
1.3 KiB
Plaintext
import { JSX } from "./intrinsic-elements.js";
|
|
import { RefObject } from "./hooks/index.js";
|
|
import { Context } from "./context.js";
|
|
import { Child, FC, JSXNode } from "./base.js";
|
|
//#region src/jsx/types.d.ts
|
|
export type PropsWithChildren<P = unknown> = P & {
|
|
children?: Child | undefined;
|
|
};
|
|
export type CSSProperties = JSX.CSSProperties;
|
|
/**
|
|
* React types
|
|
*/
|
|
type ReactElement<P = any, T = string | Function> = JSXNode & {
|
|
type: T;
|
|
props: P;
|
|
key: string | null;
|
|
};
|
|
type ReactNode = ReactElement | string | number | boolean | null | undefined;
|
|
type ComponentClass<_P = {}, _S = {}> = unknown;
|
|
export type Event = globalThis.Event;
|
|
export type MouseEvent = globalThis.MouseEvent;
|
|
export type KeyboardEvent = globalThis.KeyboardEvent;
|
|
export type FocusEvent = globalThis.FocusEvent;
|
|
export type ClipboardEvent = globalThis.ClipboardEvent;
|
|
export type InputEvent = globalThis.InputEvent;
|
|
export type PointerEvent = globalThis.PointerEvent;
|
|
export type TouchEvent = globalThis.TouchEvent;
|
|
export type WheelEvent = globalThis.WheelEvent;
|
|
export type AnimationEvent = globalThis.AnimationEvent;
|
|
export type TransitionEvent = globalThis.TransitionEvent;
|
|
export type DragEvent = globalThis.DragEvent;
|
|
//#endregion
|
|
export type { Child, ComponentClass, Context, FC, JSXNode, ReactElement, ReactNode, RefObject };
|
|
export {};
|