/
sdds
/
plasma
Обзор
Документация
Войти
/
sdds
/
plasma
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
dev
packages/sdds-cs/src/components/NumberFormat/NumberFormat.ts
15 строк
857 B
Dima Shugaev
feat(sdds-cs): get rid of styled-components
31 мар 2026, 11:13
31 мар 2026, 11:13
a4628f6
Код
Авторство
О чём код?
import type { ComponentProps, ForwardRefExoticComponent } from 'react'; import { composeNumberFormat } from '@salutejs/plasma-new-hope/emotion'; import type { CustomNumberFormatProps } from '@salutejs/plasma-new-hope'; import { TextField } from '../TextField/TextField'; /** * Note: проблема связанная с выводом типов * Выводимому типу "NumberFormat" невозможно присвоить имя без ссылки * на "@salutejs/plasma-new-hope/node_modules/react-number-format". * Вероятно, оно не является переносимым. Требуется заметка с типом. */ type NumberFormatProps = CustomNumberFormatProps & ComponentProps<typeof TextField>; export const NumberFormat = composeNumberFormat(TextField) as ForwardRefExoticComponent<NumberFormatProps>;