stream-chat-react icon indicating copy to clipboard operation
stream-chat-react copied to clipboard

`DefaultAttachmentType` does not match the type of `Attachment`

Open bryanjswift opened this issue 2 years ago • 0 comments

Released in stream-chat 5.6.0 was a change to the type of Attachment, see https://github.com/GetStream/stream-chat-js/commit/e911e020f0c6c20d57b17fab6db14ac6165caf3f#diff-c54113cf61ec99691748a3890bfbeb00e10efb3f0a76f03a0fd9ec49072e410aR1436, that added file_size with a type of string | undefined | number.

This type can not be reconciled with the DefaultAttachmentType in https://github.com/GetStream/stream-chat-react/blob/57472bed12197b26eb96f2b6b989838f113999e6/src/types/types.ts#L14

Until these types match custom message implementations will fail to build with TypeScript.

Refs https://github.com/GetStream/stream-chat-js/pull/893

bryanjswift avatar Feb 22 '22 14:02 bryanjswift