Skip to content

Commit

Permalink
fix: export DefaultStreamChatGenerics (#2266)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinCupela authored Feb 8, 2024
1 parent f0f16ab commit 6a928f6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export * from './components';
export * from './context';
export * from './i18n';
export * from './types';
export * from './utils';
1 change: 1 addition & 0 deletions src/types/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { DefaultStreamChatGenerics } from './types';
20 changes: 10 additions & 10 deletions src/types/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,6 @@ export type DefaultChannelType = UnknownType & {
subtitle?: string;
};

export type DefaultStreamChatGenerics = ExtendableGenerics & {
attachmentType: DefaultAttachmentType;
channelType: DefaultChannelType;
commandType: LiteralStringForUnion;
eventType: UnknownType;
messageType: DefaultMessageType;
reactionType: UnknownType;
userType: DefaultUserType;
};

export type DefaultMessageType<
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics
> = UnknownType & {
Expand All @@ -72,6 +62,16 @@ export type DefaultUserType<
mutes?: Array<Mute<StreamChatGenerics>>;
};

export type DefaultStreamChatGenerics = ExtendableGenerics & {
attachmentType: DefaultAttachmentType;
channelType: DefaultChannelType;
commandType: LiteralStringForUnion;
eventType: UnknownType;
messageType: DefaultMessageType;
reactionType: UnknownType;
userType: DefaultUserType;
};

export type GiphyVersions =
| 'original'
| 'fixed_height'
Expand Down

0 comments on commit 6a928f6

Please sign in to comment.