这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/eleven-pillows-bathe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hey-api/openapi-ts': patch
---

fix(typescript): remove legacy options
2 changes: 0 additions & 2 deletions packages/openapi-ts/src/plugins/@hey-api/typescript/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ export const defaultConfig: HeyApiTypeScriptPlugin['Config'] = {
config: {
case: 'PascalCase',
exportFromIndex: true,
style: 'preserve',
topType: 'unknown',
tree: false,
},
handler,
name: '@hey-api/typescript',
Expand Down
62 changes: 0 additions & 62 deletions packages/openapi-ts/src/plugins/@hey-api/typescript/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,37 +240,6 @@ export type UserConfig = Plugin.Name<'@hey-api/typescript'> &
*/
payload?: StringName;
};

// DEPRECATED OPTIONS BELOW

/**
* **This feature works only with the legacy parser**
*
* Include only types matching regular expression.
*
* @deprecated
*/
// eslint-disable-next-line typescript-sort-keys/interface
include?: string;
/**
* **This feature works only with the legacy parser**
*
* Use your preferred naming pattern
*
* @deprecated
* @default 'preserve'
*/
style?: 'PascalCase' | 'preserve';
/**
* **This feature works only with the legacy parser**
*
* Generate a tree of types containing all operations? It will be named
* $OpenApiTs.
*
* @deprecated
* @default false
*/
tree?: boolean;
};

export type Config = Plugin.Name<'@hey-api/typescript'> &
Expand Down Expand Up @@ -463,37 +432,6 @@ export type Config = Plugin.Name<'@hey-api/typescript'> &
*/
payload: StringName;
};

// DEPRECATED OPTIONS BELOW

/**
* **This feature works only with the legacy parser**
*
* Include only types matching regular expression.
*
* @deprecated
*/
// eslint-disable-next-line typescript-sort-keys/interface
include?: string;
/**
* **This feature works only with the legacy parser**
*
* Use your preferred naming pattern
*
* @deprecated
* @default 'preserve'
*/
style: 'PascalCase' | 'preserve';
/**
* **This feature works only with the legacy parser**
*
* Generate a tree of types containing all operations? It will be named
* $OpenApiTs.
*
* @deprecated
* @default false
*/
tree: boolean;
};

export type HeyApiTypeScriptPlugin = DefinePlugin<UserConfig, Config, IApi>;
2 changes: 1 addition & 1 deletion packages/openapi-ts/src/plugins/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export type PluginNames =

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

type PluginTag = 'client' | 'transformer' | 'validator';
type PluginTag = 'client' | 'sdk' | 'transformer' | 'validator';

export type PluginContext = {
package: Package;
Expand Down
Loading