diff --git a/types/react-mentions/index.d.ts b/types/react-mentions/index.d.ts index ed64cba41d..228a00b776 100644 --- a/types/react-mentions/index.d.ts +++ b/types/react-mentions/index.d.ts @@ -6,6 +6,9 @@ // TypeScript Version: 2.8 import * as React from "react"; +type Omit = Pick>; +export {}; + /** * MentionsInput is the main component rendering the textarea control. It takes one or multiple Mention components as its children. */ @@ -19,7 +22,7 @@ export const Mention: React.SFC; /** * The properties for the @see MentionsInput component. */ -export interface MentionsInputProps { +export interface MentionsInputProps extends Omit, 'onChange' | 'onBlur' | 'onKeyDown' | 'onSelect'> { /** * If set to `true` a regular text input element will be rendered * instead of a textarea