mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
15 lines
389 B
TypeScript
15 lines
389 B
TypeScript
export type MIMEType = string & { _mimeTypeBrand: any };
|
|
|
|
|
|
export const isJPEG = (value: MIMEType): boolean =>
|
|
value === 'image/jpeg';
|
|
|
|
export const isImage = (value: MIMEType): boolean =>
|
|
value.startsWith('image/');
|
|
|
|
export const isVideo = (value: MIMEType): boolean =>
|
|
value.startsWith('video/');
|
|
|
|
export const isAudio = (value: MIMEType): boolean =>
|
|
value.startsWith('audio/');
|