Skip to content

Commit 27a4d3f

Browse files
committed
refactor(input): export textarea separately from rc-input
1 parent 7a885db commit 27a4d3f

1 file changed

Lines changed: 3 additions & 12 deletions

File tree

src/index.tsx

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ import BaseInput from './BaseInput';
22
import Input from './Input';
33
import TextArea from './TextArea';
44

5-
export { BaseInput };
6-
export { default as ResizableTextArea } from './ResizableTextArea';
7-
85
export type {
96
AutoSizeType,
107
InputProps,
@@ -14,14 +11,8 @@ export type {
1411
TextAreaRef,
1512
} from './interface';
1613

17-
type CompoundedInput = typeof Input & {
18-
TextArea: typeof TextArea;
19-
};
20-
21-
const TypedInput = Input as CompoundedInput;
22-
23-
TypedInput.TextArea = TextArea;
14+
export { default as ResizableTextArea } from './ResizableTextArea';
2415

25-
export { TextArea };
16+
export { BaseInput, TextArea };
2617

27-
export default TypedInput;
18+
export default Input;

0 commit comments

Comments
 (0)