Skip to content

Commit 097b12c

Browse files
authored
fix: classNames type definition (#206)
1 parent e3f5ead commit 097b12c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Mentions.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import classNames from 'classnames';
22
import { BaseInput } from 'rc-input';
3+
import type { CommonInputProps } from 'rc-input/lib/interface';
34
import type { TextAreaProps, TextAreaRef } from 'rc-textarea';
45
import TextArea from 'rc-textarea';
56
import toArray from 'rc-util/lib/Children/toArray';
@@ -59,9 +60,8 @@ export interface MentionsProps extends BaseTextareaAttrs {
5960
open?: boolean;
6061
children?: React.ReactNode;
6162
options?: DataDrivenOptionProps[];
62-
classNames?: {
63+
classNames?: CommonInputProps['classNames'] & {
6364
mentions?: string;
64-
affixWrapper?: string;
6565
};
6666
}
6767

0 commit comments

Comments
 (0)