Skip to content

Commit 66a516b

Browse files
authored
type: export ValueType (#586)
1 parent 0d98341 commit 66a516b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/InputNumber.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ import { getDecupleSteps } from './utils/numberUtil';
1818
import { InputFocusOptions, triggerFocus } from 'rc-input/lib/utils/commonUtils';
1919
import useFrame from './hooks/useFrame';
2020

21+
export type { ValueType };
22+
2123
/**
2224
* We support `stringMode` which need handle correct type when user call in onChange
2325
* format max or min value

src/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import InputNumber, { InputNumberProps } from './InputNumber';
1+
import type { InputNumberProps, ValueType } from './InputNumber';
2+
import InputNumber from './InputNumber';
23

3-
export type { InputNumberProps };
4+
export type { InputNumberProps, ValueType };
45

56
export default InputNumber;

0 commit comments

Comments
 (0)