···11---
22-'@hey-api/openapi-ts': minor
33-'@docs/openapi-ts': patch
22+'@hey-api/openapi-ts': patch
43---
5466-feat: expand configuration by allowing multiple configs, inputs and outputs
55+feat: add support for array configuration, input, and output objects
···117117};
118118119119/**
120120- * Type helper for openapi-ts.config.ts, preserves input shape (object vs array)
120120+ * Type helper for openapi-ts.config.ts, returns {@link ConfigValue} object
121121 */
122122export const defineConfig = async <T extends ConfigValue>(
123123 config: ConfigInput<T>,
124124-): Promise<T> =>
125125- typeof config === 'function'
126126- ? await (config as () => T | Promise<T>)()
127127- : (config as T);
124124+): Promise<T> => (typeof config === 'function' ? await config() : config);
128125129126export { defaultPaginationKeywords } from './config/parser';
130127export { defaultPlugins } from './config/plugins';
+2-3
packages/openapi-ts/src/types/config.d.ts
···4646 */
4747 logs?: string | Logs;
4848 /**
4949- * The relative location of the output folder. You can specify multiple
5050- * outputs to generate different versions of your SDK with different
5151- * configurations (e.g., different plugins, formatters, or paths).
4949+ * Path to the output folder. You can define an array to generate
5050+ * multiple outputs from your input.
5251 */
5352 output: string | UserOutput;
5453 /**