fork of hey-api/openapi-ts because I need some additional things

Merge pull request #2929 from hey-api/chore/legacy-typescript-options

fix(typescript): remove legacy options

authored by

Lubos and committed by
GitHub
0a49c3ad bb30d6ed

+6 -65
+5
.changeset/eleven-pillows-bathe.md
··· 1 + --- 2 + '@hey-api/openapi-ts': patch 3 + --- 4 + 5 + fix(typescript): remove legacy options
-2
packages/openapi-ts/src/plugins/@hey-api/typescript/config.ts
··· 9 9 config: { 10 10 case: 'PascalCase', 11 11 exportFromIndex: true, 12 - style: 'preserve', 13 12 topType: 'unknown', 14 - tree: false, 15 13 }, 16 14 handler, 17 15 name: '@hey-api/typescript',
-62
packages/openapi-ts/src/plugins/@hey-api/typescript/types.d.ts
··· 240 240 */ 241 241 payload?: StringName; 242 242 }; 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; 274 243 }; 275 244 276 245 export type Config = Plugin.Name<'@hey-api/typescript'> & ··· 463 432 */ 464 433 payload: StringName; 465 434 }; 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; 497 435 }; 498 436 499 437 export type HeyApiTypeScriptPlugin = DefinePlugin<UserConfig, Config, IApi>;
+1 -1
packages/openapi-ts/src/plugins/types.d.ts
··· 31 31 32 32 export type AnyPluginName = PluginNames | (string & {}); 33 33 34 - type PluginTag = 'client' | 'transformer' | 'validator'; 34 + type PluginTag = 'client' | 'sdk' | 'transformer' | 'validator'; 35 35 36 36 export type PluginContext = { 37 37 package: Package;