@hey-api/openapi-ts 0.64.11 → 0.64.13
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.
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -7874,15 +7874,16 @@ declare const utils: {
|
|
|
7874
7874
|
}) => string;
|
|
7875
7875
|
};
|
|
7876
7876
|
|
|
7877
|
+
type Configs = UserConfig | (() => UserConfig) | (() => Promise<UserConfig>);
|
|
7877
7878
|
/**
|
|
7878
7879
|
* Generate a client from the provided configuration.
|
|
7879
7880
|
*
|
|
7880
7881
|
* @param userConfig User provided {@link UserConfig} configuration.
|
|
7881
7882
|
*/
|
|
7882
|
-
declare const createClient: (userConfig
|
|
7883
|
+
declare const createClient: (userConfig?: Configs) => Promise<ReadonlyArray<Client$1 | IR.Context>>;
|
|
7883
7884
|
/**
|
|
7884
7885
|
* Type helper for openapi-ts.config.ts, returns {@link UserConfig} object
|
|
7885
7886
|
*/
|
|
7886
|
-
declare const defineConfig: (config:
|
|
7887
|
+
declare const defineConfig: (config: Configs) => Promise<UserConfig>;
|
|
7887
7888
|
|
|
7888
7889
|
export { IR, LegacyIR, OpenApi, Plugin, type UserConfig, createClient, defaultPlugins, defineConfig, utils };
|
package/dist/index.d.ts
CHANGED
|
@@ -7874,15 +7874,16 @@ declare const utils: {
|
|
|
7874
7874
|
}) => string;
|
|
7875
7875
|
};
|
|
7876
7876
|
|
|
7877
|
+
type Configs = UserConfig | (() => UserConfig) | (() => Promise<UserConfig>);
|
|
7877
7878
|
/**
|
|
7878
7879
|
* Generate a client from the provided configuration.
|
|
7879
7880
|
*
|
|
7880
7881
|
* @param userConfig User provided {@link UserConfig} configuration.
|
|
7881
7882
|
*/
|
|
7882
|
-
declare const createClient: (userConfig
|
|
7883
|
+
declare const createClient: (userConfig?: Configs) => Promise<ReadonlyArray<Client$1 | IR.Context>>;
|
|
7883
7884
|
/**
|
|
7884
7885
|
* Type helper for openapi-ts.config.ts, returns {@link UserConfig} object
|
|
7885
7886
|
*/
|
|
7886
|
-
declare const defineConfig: (config:
|
|
7887
|
+
declare const defineConfig: (config: Configs) => Promise<UserConfig>;
|
|
7887
7888
|
|
|
7888
7889
|
export { IR, LegacyIR, OpenApi, Plugin, type UserConfig, createClient, defaultPlugins, defineConfig, utils };
|