/
kaws
/
ui-kit-ce
Обзор
Документация
Войти
/
kaws
/
ui-kit-ce
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
packages/common/src/ReactTypes.ts
26 строк
720 B
Denis Svyatovets
style: добавлен плагин eslint для jsDoc
27 янв 2025, 17:06
27 янв 2025, 17:06
6287359
Код
Авторство
О чём код?
import type { ComponentPropsWithRef, ComponentPropsWithoutRef } from 'react' //TODO: костыль для >@types/react@18.2.43, по идее должно уйти, когда обновим ts export type ComponentPropsWithRefFix<T extends React.ElementType> = Omit< ComponentPropsWithRef<T>, 'placeholder' | 'onPointerEnterCapture' | 'onPointerLeaveCapture' > & { /** * */ placeholder?: string } export type ComponentPropsWithoutRefFix<T extends React.ElementType> = Omit< ComponentPropsWithoutRef<T>, 'placeholder' | 'onPointerEnterCapture' | 'onPointerLeaveCapture' > & { /** * */ placeholder?: string } export type ComponentPropsWithAttributes<T> = T & { [key: string]: unknown }