Skip to content

Commit 8ecf994

Browse files
authored
types: update classNames type definition (#54)
1 parent d2949c3 commit 8ecf994

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/interface.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
import type { BaseInputProps, InputProps } from 'rc-input/lib/interface';
1+
import type {
2+
BaseInputProps,
3+
CommonInputProps,
4+
InputProps,
5+
} from 'rc-input/lib/interface';
26
import type React from 'react';
37
import type { CSSProperties } from 'react';
48

@@ -23,10 +27,9 @@ export type TextAreaProps = Omit<HTMLTextareaProps, 'onResize' | 'value'> & {
2327
autoSize?: boolean | AutoSizeType;
2428
onPressEnter?: React.KeyboardEventHandler<HTMLTextAreaElement>;
2529
onResize?: (size: { width: number; height: number }) => void;
26-
classNames?: {
30+
classNames?: CommonInputProps['classNames'] & {
2731
textarea?: string;
2832
count?: string;
29-
affixWrapper?: string;
3033
};
3134
styles?: {
3235
textarea?: CSSProperties;

0 commit comments

Comments
 (0)