Add basic `Attachment` type definition
							parent
							
								
									fa36e1b7a7
								
							
						
					
					
						commit
						65bf34d1b8
					
				| @ -0,0 +1,21 @@ | |||||||
|  | import is from '@sindresorhus/is'; | ||||||
|  | 
 | ||||||
|  | import { MIMEType } from './MIME'; | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | export interface Attachment { | ||||||
|  |   fileName?: string; | ||||||
|  |   contentType?: MIMEType; | ||||||
|  |   size?: number; | ||||||
|  |   data: ArrayBuffer; | ||||||
|  | 
 | ||||||
|  |   // // Omit unused / deprecated keys:
 | ||||||
|  |   // schemaVersion?: number;
 | ||||||
|  |   // id?: string;
 | ||||||
|  |   // width?: number;
 | ||||||
|  |   // height?: number;
 | ||||||
|  |   // thumbnail?: ArrayBuffer;
 | ||||||
|  |   // key?: ArrayBuffer;
 | ||||||
|  |   // digest?: ArrayBuffer;
 | ||||||
|  |   // flags?: number;
 | ||||||
|  | } | ||||||
					Loading…
					
					
				
		Reference in New Issue