@cbnsndwch/zero-sources

isFileImageAttachment() function

Home > @cbnsndwch/zrocket-contracts > isFileImageAttachment

isFileImageAttachment() function

Signature:

isFileImageAttachment: (attachment: IMessageFileAttachment) => attachment is ImageAttachmentProps & {
    type: "file";
}

Parameters

Parameter

Type

Description

attachment

IMessageFileAttachment

Returns:

attachment is ImageAttachmentProps & { type: "file"; }

How was this page?