types.ts
This file
Path
src/jsx/types.ts
40 lines · 1.4 KiB · TypeScript
Last changed by
Not known.
History of this fileTake it
The walk stopped after 200 commits: lines older than f0b094d point at it.
Merge commit from forkYusuke Wadabefore adoptionf0b094d
lines 1–40why, one step back1/**2 * All types exported from "hono/jsx" are in this file.3 */4import type { Child, JSXNode } from './base'5import type { JSX } from './intrinsic-elements'67export type { Child, JSXNode, FC } from './base'8export type { RefObject } from './hooks'9export type { Context } from './context'1011export type PropsWithChildren<P = unknown> = P & { children?: Child | undefined }12export type CSSProperties = JSX.CSSProperties1314/**15 * React types16 */1718// eslint-disable-next-line @typescript-eslint/no-explicit-any19type ReactElement<P = any, T = string | Function> = JSXNode & {20 type: T21 props: P22 key: string | null23}24type ReactNode = ReactElement | string | number | boolean | null | undefined25type ComponentClass<_P = {}, _S = {}> = unknown2627export type { ReactElement, ReactNode, ComponentClass }2829export type Event = globalThis.Event30export type MouseEvent = globalThis.MouseEvent31export type KeyboardEvent = globalThis.KeyboardEvent32export type FocusEvent = globalThis.FocusEvent33export type ClipboardEvent = globalThis.ClipboardEvent34export type InputEvent = globalThis.InputEvent35export type PointerEvent = globalThis.PointerEvent36export type TouchEvent = globalThis.TouchEvent37export type WheelEvent = globalThis.WheelEvent38export type AnimationEvent = globalThis.AnimationEvent39export type TransitionEvent = globalThis.TransitionEvent40export type DragEvent = globalThis.DragEvent