11import type { PropsWithChildren } from 'react' ;
22import type { LoadingIndicatorProps } from '../components/Loading/LoadingIndicator' ;
3- import type {
4- APIErrorResponse ,
5- Attachment ,
6- ErrorFromResponse ,
7- Event ,
8- Mute ,
9- ChannelState as StreamChannelState ,
10- } from 'stream-chat' ;
3+ import type { Attachment , ChannelState as StreamChannelState } from 'stream-chat' ;
114
125export type UnknownType = Record < string , unknown > ;
136export type PropsWithChildrenOnly = PropsWithChildren < Record < never , never > > ;
@@ -21,42 +14,6 @@ export type CustomTrigger = {
2114
2215export type CustomMessageType = 'channel.intro' | 'message.date' ;
2316
24- export type DefaultAttachmentType = UnknownType & {
25- asset_url ?: string ;
26- file_size ?: number ;
27- id ?: string ;
28- images ?: Array < {
29- image_url ?: string ;
30- thumb_url ?: string ;
31- } > ;
32- } ;
33-
34- export type DefaultChannelType = UnknownType & {
35- frozen ?: boolean ;
36- image ?: string ;
37- member_count ?: number ;
38- subtitle ?: string ;
39- } ;
40-
41- export type DefaultMessageType = UnknownType & {
42- customType ?: CustomMessageType ;
43- date ?: string | Date ;
44- error ?: ErrorFromResponse < APIErrorResponse > ;
45- errorStatusCode ?: number ;
46- event ?: Event ;
47- unread ?: boolean ;
48- } ;
49-
50- export type DefaultUserTypeInternal = {
51- image ?: string ;
52- status ?: string ;
53- } ;
54-
55- export type DefaultUserType = UnknownType &
56- DefaultUserTypeInternal & {
57- mutes ?: Array < Mute > ;
58- } ;
59-
6017export type GiphyVersions =
6118 | 'original'
6219 | 'fixed_height'
@@ -117,7 +74,7 @@ export type VideoAttachmentSizeHandler = (
11774
11875export type ChannelUnreadUiState = Omit < ValuesType < StreamChannelState [ 'read' ] > , 'user' > ;
11976
120- // todo : fix export from stream-chat - for some reason not exported
77+ // TODO : fix export from stream-chat - for some reason not exported
12178export type SendMessageOptions = {
12279 force_moderation ?: boolean ;
12380 is_pending_message ?: boolean ;
0 commit comments