Add basic Attachment
type definition
This commit is contained in:
parent
fa36e1b7a7
commit
65bf34d1b8
1 changed files with 21 additions and 0 deletions
21
ts/types/Attachment.ts
Normal file
21
ts/types/Attachment.ts
Normal file
|
@ -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 a new issue