Last active
February 26, 2020 16:53
-
-
Save stemmlerjs/11861fe057bf4fe429ce7137e109f243 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export type File = { | |
| filename: string; | |
| mimetype: string; | |
| encoding: string; | |
| stream?: ReadStream; | |
| } | |
| export type UploadedFileResponse = { | |
| filename: string; | |
| mimetype: string; | |
| encoding: string; | |
| url: string; | |
| } | |
| export interface IUploader { | |
| singleFileUploadResolver: ( | |
| parent, | |
| { file } : { file: Promise<File> } | |
| ) => Promise<UploadedFileResponse>; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment