Skip to content

Commit c97e2b8

Browse files
MichaelDeBoeygrodierjacob-ebeyGozala
authored
fix(fetch): fix ESM types (#75)
* Fix generated types to work with pure esm Co-authored-by: Jacob Ebey <[email protected]> * chore: fix changeset --------- Co-authored-by: George Rodier <[email protected]> Co-authored-by: Jacob Ebey <[email protected]> Co-authored-by: Irakli Gozalishvili <[email protected]>
1 parent 5453f55 commit c97e2b8

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/electro-disco.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@web-std/fetch": patch
3+
---
4+
5+
Fix generated types to work with node ESM / NodeNext

packages/fetch/src/fetch.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ const supportedSchemas = new Set(['data:', 'http:', 'https:', 'file:']);
3232
/**
3333
* Fetch function
3434
*
35-
* @param {string | URL | import('./request').default} url - Absolute url or Request instance
35+
* @param {string | URL | import('./request.js').default} url - Absolute url or Request instance
3636
* @param {RequestInit & import('./request.js').RequestExtraOptions} [options_] - Fetch options
37-
* @return {Promise<import('./response').default>}
37+
* @return {Promise<import('./response.js').default>}
3838
*/
3939
async function fetch(url, options_ = {}) {
4040
return new Promise((resolve, reject) => {

0 commit comments

Comments
 (0)