/
githubmirror
/
amphtml
Обзор
Документация
Войти
/
githubmirror
/
amphtml
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/preact/types.ts
26 строк
713 B
Scott Rippey
✨ [bento-mega-menu] Implemented bento mega menu (#38197)
24 май 2022, 01:25
Не верифицирован
24 май 2022, 01:25
ed0c674
Код
Авторство
О чём код?
import type {ComponentChildren, FunctionalComponent} from 'preact'; import {JSXInternal} from 'preact/src/jsx'; export type { Component, ComponentChildren, ComponentChild, ComponentProps, ComponentType, FunctionalComponent, Ref, RefObject, RenderableProps, VNode, } from 'preact'; export type FC<P = {}> = FunctionalComponent<P>; export type EventHandler<E extends JSXInternal.TargetedEvent> = JSXInternal.EventHandler<E>; export type HTMLAttributes<RefType extends EventTarget = EventTarget> = JSXInternal.HTMLAttributes<RefType>; export type IntrinsicElements = JSXInternal.IntrinsicElements; export type PropsWithChildren<TProps = {}> = TProps & { children?: ComponentChildren; };