You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			13 lines
		
	
	
		
			401 B
		
	
	
	
		
			TypeScript
		
	
			
		
		
	
	
			13 lines
		
	
	
		
			401 B
		
	
	
	
		
			TypeScript
		
	
| /**
 | |
|  * @prettier
 | |
|  */
 | |
| 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/');
 |