Skip to content

Commit 4dc421c

Browse files
committed
chore: support custom member data in StreamChatGenerics in example apps
1 parent 591c47f commit 4dc421c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

examples/typescript/src/App.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ type LocalAttachmentType = Record<string, unknown>;
2727
type LocalChannelType = Record<string, unknown>;
2828
type LocalCommandType = string;
2929
type LocalEventType = Record<string, unknown>;
30+
type LocalMemberType = Record<string, unknown>;
3031
type LocalMessageType = Record<string, unknown>;
3132
type LocalPollOptionType = Record<string, unknown>;
3233
type LocalPollType = Record<string, unknown>;
@@ -38,6 +39,7 @@ type StreamChatGenerics = {
3839
channelType: LocalChannelType;
3940
commandType: LocalCommandType;
4041
eventType: LocalEventType;
42+
memberType: LocalMemberType;
4143
messageType: LocalMessageType;
4244
pollOptionType: LocalPollOptionType;
4345
pollType: LocalPollType;

examples/vite/src/App.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ type LocalAttachmentType = Record<string, unknown>;
4141
type LocalChannelType = Record<string, unknown>;
4242
type LocalCommandType = string;
4343
type LocalEventType = Record<string, unknown>;
44+
type LocalMemberType = Record<string, unknown>;
4445
type LocalMessageType = Record<string, unknown>;
4546
type LocalPollOptionType = Record<string, unknown>;
4647
type LocalPollType = Record<string, unknown>;
@@ -52,6 +53,7 @@ type StreamChatGenerics = {
5253
channelType: LocalChannelType;
5354
commandType: LocalCommandType;
5455
eventType: LocalEventType;
56+
memberType: LocalMemberType;
5557
messageType: LocalMessageType;
5658
pollOptionType: LocalPollOptionType;
5759
pollType: LocalPollType;

0 commit comments

Comments
 (0)