This repository was archived by the owner on Jan 29, 2026. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +10
-9
lines changed
packages/tds-widget/src/chat/types Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 11export type ValueOf < T > = T [ keyof T ]
2+
3+ export interface ChatChannelInfo {
4+ channel : string
5+ events : { refresh : string ; unread : string ; send : string ; join : string }
6+ needAuth : boolean
7+ }
Original file line number Diff line number Diff line change 1- import { ValueOf } from './base'
1+ import { ChatChannelInfo , ValueOf } from './base'
22import { ChatMessageInterface } from './message'
33import { ChatUserInterface , UserType } from './user'
44
@@ -108,13 +108,7 @@ interface ChatRoomDetailRoomInterface<T = UserType> {
108108 isDirect : boolean
109109 createdAt : string
110110 privateChannel : boolean
111- channel : ChatRoomChannelInfo
112- }
113-
114- interface ChatRoomChannelInfo {
115- channel : string
116- events : { refresh : string ; unread : string ; send : string ; join : string }
117- needAuth : boolean
111+ channel : ChatChannelInfo
118112}
119113
120114export type CreatedChatRoomInterface <
Original file line number Diff line number Diff line change 1- import { ValueOf } from './base'
1+ import { ChatChannelInfo , ValueOf } from './base'
22
33export const UserType = {
44 TRIPLE_USER : 'TRIPLE_USER' ,
@@ -33,6 +33,7 @@ export interface ChatUserInterface<T = UserType> {
3333 identifier : string
3434 code : string
3535 profile : ChatUserProfileInterface
36+ channel : ChatChannelInfo
3637}
3738
3839interface ChatUserProfileInterface {
You can’t perform that action at this time.
0 commit comments