@@ -56,28 +56,40 @@ export type TouchableEmitter =
5656 | 'messageReplies'
5757 | 'reactionList' ;
5858
59+ export type TextMentionTouchableHandlerAdditionalInfo <
60+ StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics ,
61+ > = { user ?: UserResponse < StreamChatGenerics > } ;
62+
5963export type TextMentionTouchableHandlerPayload <
6064 StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics ,
6165> = {
6266 emitter : 'textMention' ;
63- additionalInfo ?: { user ?: UserResponse < StreamChatGenerics > } ;
67+ additionalInfo ?: TextMentionTouchableHandlerAdditionalInfo < StreamChatGenerics > ;
6468} ;
6569
70+ export type UrlTouchableHandlerAdditionalInfo = { url ?: string } ;
71+
6672export type UrlTouchableHandlerPayload = {
6773 emitter : 'textLink' | 'card' ;
68- additionalInfo ?: { url ?: string } ;
74+ additionalInfo ?: UrlTouchableHandlerAdditionalInfo ;
6975} ;
7076
77+ export type FileAttachmentTouchableHandlerAdditionalInfo <
78+ StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics ,
79+ > = { attachment ?: Attachment < StreamChatGenerics > } ;
80+
7181export type FileAttachmentTouchableHandlerPayload <
7282 StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics ,
7383> = {
7484 emitter : 'fileAttachment' ;
75- additionalInfo ?: { attachment ?: Attachment < StreamChatGenerics > } ;
85+ additionalInfo ?: FileAttachmentTouchableHandlerAdditionalInfo < StreamChatGenerics > ;
7686} ;
7787
88+ export type GalleryThumbnailTouchableHandlerAdditionalInfo = { thumbnail ?: Thumbnail } ;
89+
7890export type GalleryThumbnailTouchableHandlerPayload = {
7991 emitter : 'gallery' ;
80- additionalInfo ?: { thumbnail ?: Thumbnail } ;
92+ additionalInfo ?: GalleryThumbnailTouchableHandlerAdditionalInfo ;
8193} ;
8294
8395export type PressableHandlerPayload = {
0 commit comments