Support TypeScript import in browser (#433)

This commit is contained in:
Mark Herhold 2018-03-24 14:29:00 -04:00 committed by Timothy Gu
parent 8aac53679d
commit a1cbcb5706
1 changed files with 4 additions and 0 deletions

View File

@ -1,4 +1,8 @@
module.exports = exports = window.fetch;
// Needed for TypeScript.
exports.default = window.fetch;
exports.Headers = window.Headers;
exports.Request = window.Request;
exports.Response = window.Response;