ofetch icon indicating copy to clipboard operation
ofetch copied to clipboard

Missing types in node export

Open Aareksio opened this issue 1 year ago • 1 comments

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

Aareksio avatar Apr 29 '24 19:04 Aareksio

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)

makezi avatar Jun 15 '24 02:06 makezi

The fix is merged to the main branch via #407 it will be released with the next minor sorry for inconvenience.

pi0 avatar Aug 28 '24 10:08 pi0