diff --git a/src/InputNumber.tsx b/src/InputNumber.tsx index df90f94e..15a7673c 100644 --- a/src/InputNumber.tsx +++ b/src/InputNumber.tsx @@ -18,6 +18,8 @@ import { getDecupleSteps } from './utils/numberUtil'; import { InputFocusOptions, triggerFocus } from 'rc-input/lib/utils/commonUtils'; import useFrame from './hooks/useFrame'; +export type { ValueType }; + /** * We support `stringMode` which need handle correct type when user call in onChange * format max or min value diff --git a/src/index.ts b/src/index.ts index 9b6768c6..0e60b192 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,5 +1,6 @@ -import InputNumber, { InputNumberProps } from './InputNumber'; +import type { InputNumberProps, ValueType } from './InputNumber'; +import InputNumber from './InputNumber'; -export type { InputNumberProps }; +export type { InputNumberProps, ValueType }; export default InputNumber;