DefinitelyTyped/types/apollo-upload-client/apollo-upload-client-tests.ts
Edward Sammut Alessi 4a4db6d249 Typings for apollo-upload-client (#27094)
* Typings for apollo-upload-client

* Update package.json

* Triggering build
2018-07-12 10:00:16 -07:00

17 lines
459 B
TypeScript

import { createUploadLink, ReactNativeFile } from "apollo-upload-client";
new ReactNativeFile({
name: "its coming home",
type: "its coming",
uri: "football's coming home",
});
createUploadLink({
fetch: (uri, options) => fetch(`http://localhost/${uri}`, options),
fetchOptions: { method: "GET" },
headers: { special: "Special header value" },
includeExtensions: true,
uri: "http://localhost",
credentials: "beepboop",
});