You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Request class is exported as the default export from source/core/index.
In source/index, the types from source/core/index are exported with an aggregation, like so: export * from 'source/core/index.js':
Describe the bug
The
Request
class is exported as the default export fromsource/core/index
.In
source/index
, the types fromsource/core/index
are exported with an aggregation, like so:export * from 'source/core/index.js'
:got/source/index.ts
Line 19 in 49c605c
This re-export don't propagate the default export from
source/core/index.js
: https://developer.mozilla.org/en-US/docs/web/javascript/reference/statements/exportHence the
Request
type is lost in the re-export.It is not in the list of exported type: https://github.com/sindresorhus/got/blob/main/documentation/typescript.md
So, I am not sure if this missing type is by design, or not. Feel free to close if this type is expected to be hidden.
Actual behavior
Expected behavior
Checklist
The text was updated successfully, but these errors were encountered: