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

Configure Feed

Select the types of activity you want to include in your feed.

refactor: rename NestJSPlugin to NestJsPlugin for codebase consistency

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

+12 -12
+4 -4
packages/openapi-ts/src/index.ts
··· 80 80 '@tanstack/vue-query': Plugins.TanStackVueQuery.Types['Types']; 81 81 arktype: Plugins.Arktype.Types['Types']; 82 82 fastify: Plugins.Fastify.Types['Types']; 83 - nestjs: Plugins.NestJS.Types['Types']; 83 + nestjs: Plugins.NestJs.Types['Types']; 84 84 swr: Plugins.Swr.Types['Types']; 85 85 valibot: Plugins.Valibot.Types['Types']; 86 86 zod: Plugins.Zod.Types['Types']; ··· 141 141 import type { TanStackVueQueryPlugin } from './plugins/@tanstack/vue-query'; 142 142 import type { ArktypePlugin } from './plugins/arktype'; 143 143 import type { FastifyPlugin } from './plugins/fastify'; 144 - import type { NestJSPlugin } from './plugins/nestjs'; 144 + import type { NestJsPlugin } from './plugins/nestjs'; 145 145 import type { SwrPlugin } from './plugins/swr'; 146 146 import type { ValibotPlugin, ValibotResolvers } from './plugins/valibot'; 147 147 import type { ZodPlugin, ZodResolvers } from './plugins/zod'; ··· 211 211 export type Types = FastifyPlugin; 212 212 } 213 213 214 - export namespace NestJS { 215 - export type Types = NestJSPlugin; 214 + export namespace NestJs { 215 + export type Types = NestJsPlugin; 216 216 } 217 217 218 218 export namespace HeyApiClientAngular {
+2 -2
packages/openapi-ts/src/plugins/nestjs/config.ts
··· 1 1 import { definePluginConfig } from '@hey-api/shared'; 2 2 3 3 import { handler } from './plugin'; 4 - import type { NestJSPlugin } from './types'; 4 + import type { NestJsPlugin } from './types'; 5 5 6 - export const defaultConfig: NestJSPlugin['Config'] = { 6 + export const defaultConfig: NestJsPlugin['Config'] = { 7 7 config: { 8 8 includeInEntry: false, 9 9 },
+1 -1
packages/openapi-ts/src/plugins/nestjs/index.ts
··· 1 1 export { defaultConfig, defineConfig } from './config'; 2 - export type { NestJSPlugin } from './types'; 2 + export type { NestJsPlugin } from './types';
+4 -4
packages/openapi-ts/src/plugins/nestjs/plugin.ts
··· 2 2 import { hasParameterGroupObjectRequired, operationResponsesMap, toCase } from '@hey-api/shared'; 3 3 4 4 import { $ } from '../../ts-dsl'; 5 - import type { NestJSPlugin } from './types'; 5 + import type { NestJsPlugin } from './types'; 6 6 7 7 const operationToMethod = ({ 8 8 operation, 9 9 plugin, 10 10 }: { 11 11 operation: IR.OperationObject; 12 - plugin: NestJSPlugin['Instance']; 12 + plugin: NestJsPlugin['Instance']; 13 13 }) => { 14 14 const funcType = $.type.func(); 15 15 ··· 99 99 typeName, 100 100 }: { 101 101 methods: Array<{ name: string; type: ReturnType<typeof $.type.func> }>; 102 - plugin: NestJSPlugin['Instance']; 102 + plugin: NestJsPlugin['Instance']; 103 103 typeName: string; 104 104 }) => { 105 105 const symbol = plugin.symbol(typeName); ··· 110 110 plugin.node($.type.alias(symbol).export().type(type)); 111 111 }; 112 112 113 - export const handler: NestJSPlugin['Handler'] = ({ plugin }) => { 113 + export const handler: NestJsPlugin['Handler'] = ({ plugin }) => { 114 114 // Collect operations by tag, then emit per-tag types 115 115 const operationsByTag = new Map< 116 116 string,
+1 -1
packages/openapi-ts/src/plugins/nestjs/types.ts
··· 2 2 3 3 export type UserConfig = Plugin.Name<'nestjs'> & Plugin.Hooks & Plugin.UserExports; 4 4 5 - export type NestJSPlugin = DefinePlugin<UserConfig, UserConfig>; 5 + export type NestJsPlugin = DefinePlugin<UserConfig, UserConfig>;