Skip to content

Commit d02ab11

Browse files
committed
chore: update types in utils
1 parent d61e137 commit d02ab11

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

packages/uikit-utils/src/types.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
/* eslint-disable @typescript-eslint/no-explicit-any */
2-
3-
/* eslint-disable @typescript-eslint/no-empty-interface */
42
import type React from 'react';
53

6-
import type SendbirdChat from '@sendbird/chat';
74
import type {
85
BaseChannel,
96
Emoji,
@@ -13,6 +10,7 @@ import type {
1310
Participant,
1411
RestrictedUser,
1512
SendbirdError as SBError,
13+
SendbirdChatWith,
1614
User,
1715
UserUpdateParams,
1816
} from '@sendbird/chat';
@@ -28,7 +26,6 @@ import type {
2826
MessageCollection,
2927
} from '@sendbird/chat/groupChannel';
3028
import type {
31-
ModuleNamespaces,
3229
OpenChannelCreateParams,
3330
OpenChannelUpdateParams,
3431
SendableMessage,
@@ -82,7 +79,7 @@ export type OnBeforeHandler<T> = (params: T) => T | Promise<T>;
8279
export interface UserStruct {
8380
userId: string;
8481
}
85-
export type SendbirdChatSDK = SendbirdChat & ModuleNamespaces<[GroupChannelModule, OpenChannelModule]>;
82+
export type SendbirdChatSDK = SendbirdChatWith<[GroupChannelModule, OpenChannelModule]>;
8683
export type SendbirdMessage = BaseMessage | FileMessage | UserMessage | AdminMessage | SendableMessage;
8784
export type SendbirdChannel = BaseChannel | GroupChannel | OpenChannel;
8885
export type SendbirdUserMessage = UserMessage;

0 commit comments

Comments
 (0)