@hey-api/client-fetch
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -136,9 +136,8 @@ type ArrayStyle = 'form' | 'spaceDelimited' | 'pipeDelimited'; | ||
type Options<T = unknown> = T extends { | ||
body: any; | ||
headers: any; | ||
} ? OmitKeys<OptionsBase, 'body' | 'headers'> & T : T extends { | ||
body: any; | ||
} ? OmitKeys<OptionsBase, 'body'> & T : T extends { | ||
headers: any; | ||
} ? OmitKeys<OptionsBase, 'headers'> & T : OptionsBase & T; | ||
body?: any; | ||
} ? T extends { | ||
headers?: any; | ||
} ? OmitKeys<OptionsBase, 'body' | 'headers'> & T : OmitKeys<OptionsBase, 'body'> & T & Pick<OptionsBase, 'headers'> : T extends { | ||
headers?: any; | ||
} ? OmitKeys<OptionsBase, 'headers'> & T & Pick<OptionsBase, 'body'> : OptionsBase & T; | ||
@@ -145,0 +144,0 @@ declare const createClient: (config: Config) => Client; |
{ | ||
"name": "@hey-api/client-fetch", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "Typesafe Fetch API client for your @hey-api/openapi-ts types", |
@@ -145,8 +145,8 @@ import type { | ||
export type Options<T = unknown> = T extends { body: any; headers: any } | ||
? OmitKeys<OptionsBase, 'body' | 'headers'> & T | ||
: T extends { body: any } | ||
? OmitKeys<OptionsBase, 'body'> & T | ||
: T extends { headers: any } | ||
? OmitKeys<OptionsBase, 'headers'> & T | ||
: OptionsBase & T; | ||
export type Options<T = unknown> = T extends { body?: any } | ||
? T extends { headers?: any } | ||
? OmitKeys<OptionsBase, 'body' | 'headers'> & T | ||
: OmitKeys<OptionsBase, 'body'> & T & Pick<OptionsBase, 'headers'> | ||
: T extends { headers?: any } | ||
? OmitKeys<OptionsBase, 'headers'> & T & Pick<OptionsBase, 'body'> | ||
: OptionsBase & T; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41764
943