Files
SnowLuma/.pnpm-store/v11/files/58/c03163b57efd02036cb9f944e5d1ad955a71e0fafe5cfd8f8aeda06d24cf83f09c25f1e4178d5a6ad92e514ca49fff099382b06a30ba73906c9e70865a6616
TanTan 2a69b23b47
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
docs: 仓库链接指向本镜像仓库
2026-11-13 09:27:07 +08:00

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 {};