@itd-api/hydrate / HydratedAttachmentActions
Interface: HydratedAttachmentActions
Defined in: models/attachment/attachment.types.ts:6
Безопасные проверки типа вложения.
Methods
isAudio()
ts
isAudio(): this is HydratedAttachmentActions & { type: "audio" };Defined in: models/attachment/attachment.types.ts:12
Является ли вложение аудио.
Returns
this is HydratedAttachmentActions & { type: "audio" }
isImage()
ts
isImage(): this is HydratedAttachmentActions & { type: "image" };Defined in: models/attachment/attachment.types.ts:8
Является ли вложение изображением.
Returns
this is HydratedAttachmentActions & { type: "image" }
isVideo()
ts
isVideo(): this is HydratedAttachmentActions & { type: "video" };Defined in: models/attachment/attachment.types.ts:10
Является ли вложение видео.
Returns
this is HydratedAttachmentActions & { type: "video" }