Skip to content

Commit

Permalink
fix(types): added missing export of MessageListContent
Browse files Browse the repository at this point in the history
  • Loading branch information
supersnager committed Jul 13, 2022
1 parent 6d63232 commit 213b15d
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/components/MessageList/MessageList.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import type {ReactElement, ReactNode} from "react";
import type {ChatComponentPropsChildrenRef} from "../../types";
import type {ChatComponentPropsChildrenRef, ChatComponentPropsChildren, EmptyProps} from "../../types";

export type MessageListContentProps = EmptyProps;

declare const MessageListContent: (props:ChatComponentPropsChildren<MessageListContentProps, "div">) => ReactElement;

export interface MessageListOwnProps {
typingIndicator?: ReactNode;
Expand All @@ -16,6 +20,14 @@ export interface MessageListOwnProps {

export type MessageListProps = ChatComponentPropsChildrenRef<MessageListOwnProps, "div">

export declare const MessageList: (props:MessageListProps) => ReactElement;
declare const MessageList: {
(props:MessageListProps):ReactElement;
Content: typeof MessageListContent;
};

export {
MessageListContent,
MessageList
};

export default MessageList;

0 comments on commit 213b15d

Please sign in to comment.