Files
SnowLuma/.pnpm-store/v11/files/f9/a5ff95a71c474005b81d54fe462553d1ee73bb1043c13129d458506d846fa6999e4337541e601a8b2a17d08fc753ca5c0e0189873ee6c007e1333003be33e8
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) Canceled after 0s
docs: 仓库链接指向本镜像仓库
2026-11-13 09:27:07 +08:00

74 lines
5.2 KiB
Plaintext

import { HtmlEscapedString } from "../utils/html.js";
import { ErrorBoundary, ErrorHandler, FallbackRender } from "./components.js";
import { JSX } from "./intrinsic-elements.js";
import { RefObject, createRef, forwardRef, startTransition, startViewTransition, use, useCallback, useDebugValue, useDeferredValue, useEffect, useId, useImperativeHandle, useInsertionEffect, useLayoutEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore, useTransition, useViewTransition } from "./hooks/index.js";
import { AnimationEvent, CSSProperties, ClipboardEvent, ComponentClass, DragEvent, Event, FocusEvent, InputEvent, KeyboardEvent, MouseEvent, PointerEvent, PropsWithChildren, ReactElement, ReactNode, TouchEvent, TransitionEvent, WheelEvent } from "./types.js";
import { Children } from "./children.js";
import { useActionState, useOptimistic } from "./dom/hooks/index.js";
import { Suspense } from "./streaming.js";
import { Context, createContext, useContext } from "./context.js";
import { Child, DOMAttributes, FC, Fragment, JSX as JSX$1, JSXNode, Props, cloneElement, isValidElement, jsx, memo, reactAPICompatVersion } from "./base.js";
//#region src/jsx/index.d.ts
declare const _default: {
version: string;
memo: <T>(component: FC<T>, propsAreEqual?: (prevProps: Readonly<T>, nextProps: Readonly<T>) => boolean) => FC<T>;
Fragment: ({ children }: {
key?: string;
children?: Child | HtmlEscapedString;
}) => HtmlEscapedString;
StrictMode: ({ children }: {
key?: string;
children?: Child | HtmlEscapedString;
}) => HtmlEscapedString;
isValidElement: (element: unknown) => element is JSXNode;
createElement: (tag: string | Function, props: Props | null, ...children: Child[]) => JSXNode;
cloneElement: <T extends JSXNode | JSX$1.Element>(element: T, props: Partial<Props>, ...children: Child[]) => T;
ErrorBoundary: FC<PropsWithChildren<{
fallback?: Child;
fallbackRender?: FallbackRender;
onError?: ErrorHandler;
}>>;
createContext: <T>(defaultValue: T) => Context<T>;
useContext: <T>(context: Context<T>) => T;
useState: {
<T>(initialState: T | (() => T)): [T, (newState: T | ((currentState: T) => T)) => void];
<T = undefined>(): [T | undefined, (newState: T | ((currentState: T | undefined) => T | undefined) | undefined) => void];
};
useEffect: (effect: () => void | (() => void), deps?: readonly unknown[]) => void;
useRef: typeof useRef;
useCallback: <T extends Function>(callback: T, deps: readonly unknown[]) => T;
useReducer: <T, A>(reducer: (state: T, action: A) => T, initialArg: T, init?: (initialState: T) => T) => [T, (action: A) => void];
useId: () => string;
useDebugValue: (_value: unknown, _formatter?: (value: unknown) => string) => void;
use: <T>(promise: Promise<T>) => T;
startTransition: (callback: () => void) => void;
useTransition: () => [boolean, (callback: () => void | Promise<void>) => void];
useDeferredValue: <T>(value: T, initialValue?: T) => T;
startViewTransition: (callback: () => void) => void;
useViewTransition: () => [boolean, (callback: () => void) => void];
useMemo: <T>(factory: () => T, deps: readonly unknown[]) => T;
useLayoutEffect: (effect: () => void | (() => void), deps?: readonly unknown[]) => void;
useInsertionEffect: (effect: () => void | (() => void), deps?: readonly unknown[]) => void;
createRef: <T>() => RefObject<T | null>;
forwardRef: <T, P = {}>(Component: (props: P, ref?: RefObject<T | null>) => JSX$1.Element) => ((props: P & {
ref?: RefObject<T | null>;
}) => JSX$1.Element);
useImperativeHandle: <T>(ref: RefObject<T | null>, createHandle: () => T, deps: readonly unknown[]) => void;
useSyncExternalStore: <T>(subscribe: (callback: () => void) => () => void, getSnapshot: () => T, getServerSnapshot?: () => T) => T;
useActionState: <T>(fn: Function, initialState: T, permalink?: string) => [T, Function];
useOptimistic: <T, N>(state: T, updateState: (currentState: T, action: N) => T) => [T, (action: N) => void];
Suspense: FC<PropsWithChildren<{
fallback: any;
}>>;
Children: {
map: (children: Child[], fn: (child: Child, index: number) => Child) => Child[];
forEach: (children: Child[], fn: (child: Child, index: number) => void) => void;
count: (children: Child[]) => number;
only: (_children: Child[]) => Child;
toArray: (children: Child) => Child[];
};
};
//#endregion
export { type AnimationEvent, type CSSProperties, type Child, Children, type ClipboardEvent, type ComponentClass, type Context, type DOMAttributes, type DragEvent, ErrorBoundary, type Event, type FC, type FocusEvent, Fragment, Fragment as StrictMode, type InputEvent, type JSX, type JSXNode, type KeyboardEvent, type MouseEvent, type PointerEvent, type PropsWithChildren, type ReactElement, type ReactNode, type RefObject, Suspense, type TouchEvent, type TransitionEvent, type WheelEvent, cloneElement, createContext, jsx as createElement, jsx, createRef, _default as default, forwardRef, isValidElement, memo, startTransition, startViewTransition, use, useActionState, useCallback, useContext, useDebugValue, useDeferredValue, useEffect, useId, useImperativeHandle, useInsertionEffect, useLayoutEffect, useMemo, useOptimistic, useReducer, useRef, useState, useSyncExternalStore, useTransition, useViewTransition, reactAPICompatVersion as version };
export {};