@hey-api/openapi-ts 0.90.9 → 0.91.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,6 @@
1
+ import type { Options as KyOptions } from 'ky';
2
+ import type ky from 'ky';
3
+
1
4
  import type { Auth } from '../core/auth';
2
5
  import type {
3
6
  ServerSentEventsOptions,
@@ -36,7 +39,7 @@ export interface RetryOptions {
36
39
 
37
40
  export interface Config<T extends ClientOptions = ClientOptions>
38
41
  extends Omit<
39
- import('ky').Options,
42
+ KyOptions,
40
43
  'body' | 'headers' | 'method' | 'prefixUrl' | 'retry' | 'throwHttpErrors'
41
44
  >,
42
45
  CoreConfig {
@@ -48,12 +51,12 @@ export interface Config<T extends ClientOptions = ClientOptions>
48
51
  * Ky instance to use. You can use this option to provide a custom
49
52
  * ky instance.
50
53
  */
51
- ky?: typeof import('ky').default;
54
+ ky?: typeof ky;
52
55
  /**
53
56
  * Additional ky-specific options that will be passed directly to ky.
54
57
  * This allows you to use any ky option not explicitly exposed in the config.
55
58
  */
56
- kyOptions?: Omit<import('ky').Options, 'method' | 'prefixUrl'>;
59
+ kyOptions?: Omit<KyOptions, 'method' | 'prefixUrl'>;
57
60
  /**
58
61
  * Return the response data parsed in a specified format. By default, `auto`
59
62
  * will infer the appropriate method from the `Content-Type` response header.