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
typeOptionsBase<ThrowOnErrorextendsboolean>=Omit<RequestOptionsBase<ThrowOnError>,'url'>&{/** * You can provide a client instance returned by `createClient()` instead of * individual options. This might be also useful if you want to implement a * custom client. */client?: Client;};typeOptions<T=unknown,ThrowOnErrorextendsboolean=boolean>=Textends{body?: any;} ? Textends{headers?: any;} ? OmitKeys<OptionsBase<ThrowOnError>,'body'|'headers'>&T : OmitKeys<OptionsBase<ThrowOnError>,'body'>&T&Pick<OptionsBase<ThrowOnError>,'headers'> : Textends{headers?: any;} ? OmitKeys<OptionsBase<ThrowOnError>,'headers'>&T&Pick<OptionsBase<ThrowOnError>,'body'> : OptionsBase<ThrowOnError>&T;
Resulting errors
Type 'string' does not satisfy the constraint 'keyof TOptions'.
Type 'string' is not assignable to type 'keyof TOptions'.
Type '"body"' is not assignable to type '"method" | "cache" | "credentials" | "integrity" | "keepalive" | "mode" | "priority" | "redirect" | "referrer" | "referrerPolicy" | "signal" | "window" | "path" | "query" | "baseUrl" | ... 6 more ... | "client"'.ts(2344)
Reproducible example or configuration
Can't reproduce the error on stackblitz, no idea why.... tried aligning typescript and hey-api package versions on stackblitz as my local machine, just works on stackblitz for some reason
Description
Lots of type errors in the generated
react-query.gen.ts
Resulting errors
Reproducible example or configuration
Can't reproduce the error on stackblitz, no idea why.... tried aligning typescript and hey-api package versions on stackblitz as my local machine, just works on stackblitz for some reason
node 18.16.1
typescript 5.4.5
@hey-api/client-fetch 0.4.2
@hey-api/openapi-ts 0.54.0
OpenAPI specification (optional)
No response
System information (optional)
No response
The text was updated successfully, but these errors were encountered: