Skip to content

Commit 0a49c3a

Browse files
authored
Merge pull request #2929 from hey-api/chore/legacy-typescript-options
fix(typescript): remove legacy options
2 parents bb30d6e + 97c1f0e commit 0a49c3a

File tree

4 files changed

+6
-65
lines changed

4 files changed

+6
-65
lines changed

.changeset/eleven-pillows-bathe.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@hey-api/openapi-ts': patch
3+
---
4+
5+
fix(typescript): remove legacy options

packages/openapi-ts/src/plugins/@hey-api/typescript/config.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ export const defaultConfig: HeyApiTypeScriptPlugin['Config'] = {
99
config: {
1010
case: 'PascalCase',
1111
exportFromIndex: true,
12-
style: 'preserve',
1312
topType: 'unknown',
14-
tree: false,
1513
},
1614
handler,
1715
name: '@hey-api/typescript',

packages/openapi-ts/src/plugins/@hey-api/typescript/types.d.ts

Lines changed: 0 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -240,37 +240,6 @@ export type UserConfig = Plugin.Name<'@hey-api/typescript'> &
240240
*/
241241
payload?: StringName;
242242
};
243-
244-
// DEPRECATED OPTIONS BELOW
245-
246-
/**
247-
* **This feature works only with the legacy parser**
248-
*
249-
* Include only types matching regular expression.
250-
*
251-
* @deprecated
252-
*/
253-
// eslint-disable-next-line typescript-sort-keys/interface
254-
include?: string;
255-
/**
256-
* **This feature works only with the legacy parser**
257-
*
258-
* Use your preferred naming pattern
259-
*
260-
* @deprecated
261-
* @default 'preserve'
262-
*/
263-
style?: 'PascalCase' | 'preserve';
264-
/**
265-
* **This feature works only with the legacy parser**
266-
*
267-
* Generate a tree of types containing all operations? It will be named
268-
* $OpenApiTs.
269-
*
270-
* @deprecated
271-
* @default false
272-
*/
273-
tree?: boolean;
274243
};
275244

276245
export type Config = Plugin.Name<'@hey-api/typescript'> &
@@ -463,37 +432,6 @@ export type Config = Plugin.Name<'@hey-api/typescript'> &
463432
*/
464433
payload: StringName;
465434
};
466-
467-
// DEPRECATED OPTIONS BELOW
468-
469-
/**
470-
* **This feature works only with the legacy parser**
471-
*
472-
* Include only types matching regular expression.
473-
*
474-
* @deprecated
475-
*/
476-
// eslint-disable-next-line typescript-sort-keys/interface
477-
include?: string;
478-
/**
479-
* **This feature works only with the legacy parser**
480-
*
481-
* Use your preferred naming pattern
482-
*
483-
* @deprecated
484-
* @default 'preserve'
485-
*/
486-
style: 'PascalCase' | 'preserve';
487-
/**
488-
* **This feature works only with the legacy parser**
489-
*
490-
* Generate a tree of types containing all operations? It will be named
491-
* $OpenApiTs.
492-
*
493-
* @deprecated
494-
* @default false
495-
*/
496-
tree: boolean;
497435
};
498436

499437
export type HeyApiTypeScriptPlugin = DefinePlugin<UserConfig, Config, IApi>;

packages/openapi-ts/src/plugins/types.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export type PluginNames =
3131

3232
export type AnyPluginName = PluginNames | (string & {});
3333

34-
type PluginTag = 'client' | 'transformer' | 'validator';
34+
type PluginTag = 'client' | 'sdk' | 'transformer' | 'validator';
3535

3636
export type PluginContext = {
3737
package: Package;

0 commit comments

Comments
 (0)