From d15131099b53e40d952d5dc90a4fbc98e4eb02a4 Mon Sep 17 00:00:00 2001 From: Zhang Yi Jiang Date: Wed, 15 May 2019 13:17:21 -0700 Subject: [PATCH] [react-mentions] MentionInput should extend textarea props (#35352) --- types/react-mentions/index.d.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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