Skip to content

Instantly share code, notes, and snippets.

@tobie
Created June 4, 2014 13:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tobie/5e89cd37dd8b819905c4 to your computer and use it in GitHub Desktop.
Save tobie/5e89cd37dd8b819905c4 to your computer and use it in GitHub Desktop.
[NoInterfaceObject]
interface GlobalFetch {
Promise<Response> fetch(RequestInfo input, optional RequestInit init);
};
Window implements GlobalFetch;
partial interface Window {
Promise<Response> fetch(RequestInfo input, optional RequestInit init);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment