Skip to content

Instantly share code, notes, and snippets.

@stemmlerjs
Last active February 26, 2020 16:53
Show Gist options
  • Select an option

  • Save stemmlerjs/11861fe057bf4fe429ce7137e109f243 to your computer and use it in GitHub Desktop.

Select an option

Save stemmlerjs/11861fe057bf4fe429ce7137e109f243 to your computer and use it in GitHub Desktop.
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