Skip to content

Commit

Permalink
Fixing types for Message component
Browse files Browse the repository at this point in the history
  • Loading branch information
vishalnarkhede committed Feb 7, 2020
1 parent 68d1afb commit cc86f6f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions types/index.d.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -454,6 +454,7 @@ export interface MessageProps {
event: React.SyntheticEvent,
): void;
additionalMessageInputProps?: object;
clearEditingState?(e?: React.MouseEvent): void;
}

export interface MessageUIComponentProps extends MessageProps {
Expand Down Expand Up @@ -849,7 +850,7 @@ export class Tooltip extends React.PureComponent<TooltipProps, any> {}
export class Chat extends React.PureComponent<ChatProps, any> {}
export class Channel extends React.PureComponent<ChannelProps, any> {}
export class Avatar extends React.PureComponent<AvatarProps, any> {}
export class Message extends React.PureComponent<any, any> {}
export class Message extends React.PureComponent<MessageProps, any> {}
export class MessageList extends React.PureComponent<MessageListProps, any> {}
export class ChannelHeader extends React.PureComponent<
ChannelHeaderProps,
Expand Down

0 comments on commit cc86f6f

Please sign in to comment.