Support TypeScript import in browser (#433)
This commit is contained in:
parent
8aac53679d
commit
a1cbcb5706
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue