ofetch
ofetch copied to clipboard
Missing types in node export
Environment
node 21
Reproduction
https://unpkg.com/[email protected]/dist/index.d.ts https://unpkg.com/[email protected]/dist/node.d.ts
Describe the bug
node.d.ts is missing type exports present in index.d.ts
Additional context
< export { C as CreateFetchOptions, g as Fetch, b as FetchContext, F as FetchError, d as FetchOptions, h as FetchRequest, f as FetchResponse, G as GlobalOptions, I as IFetchError, M as MappedResponseType, R as ResponseMap, e as ResponseType, S as SearchParameters, c as createFetch, a as createFetchError } from './shared/ofetch.8459ad38.mjs';
---
> export { F as FetchError, c as createFetch, a as createFetchError } from './shared/ofetch.8459ad38.mjs';
Logs
No response
Can confirm that these types were previously exported in v1.3.3. Updated to v1.3.4 and now facing "Module 'ofetch' has no exported member FetchOptions" (Same as #395)
The fix is merged to the main branch via #407 it will be released with the next minor sorry for inconvenience.