From cc86f6fea998e8581121c7da42870b0c5d316d8c Mon Sep 17 00:00:00 2001 From: vishtree Date: Fri, 7 Feb 2020 17:11:27 +0100 Subject: [PATCH] Fixing types for Message component --- types/index.d.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/types/index.d.ts b/types/index.d.ts index 73a248d94..5073cbcca 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -1,8 +1,8 @@ // TypeScript Version: 2.8 /** Components */ -// import * as React from 'react'; -// import * as Client from 'stream-chat'; +import * as React from 'react'; +import * as Client from 'stream-chat'; import SeamlessImmutable from 'seamless-immutable'; import { MessageResponse } from 'stream-chat'; import ReactMarkdown from 'react-markdown'; @@ -454,6 +454,7 @@ export interface MessageProps { event: React.SyntheticEvent, ): void; additionalMessageInputProps?: object; + clearEditingState?(e?: React.MouseEvent): void; } export interface MessageUIComponentProps extends MessageProps { @@ -849,7 +850,7 @@ export class Tooltip extends React.PureComponent {} export class Chat extends React.PureComponent {} export class Channel extends React.PureComponent {} export class Avatar extends React.PureComponent {} -export class Message extends React.PureComponent {} +export class Message extends React.PureComponent {} export class MessageList extends React.PureComponent {} export class ChannelHeader extends React.PureComponent< ChannelHeaderProps,