diff --git a/packages/express/src/snapshot/zod/v1/types.ts b/packages/express/src/snapshot/zod/v1/types.ts index 869e6e1..1aa8292 100644 --- a/packages/express/src/snapshot/zod/v1/types.ts +++ b/packages/express/src/snapshot/zod/v1/types.ts @@ -135,6 +135,7 @@ export type ExhaustiveParamsParams = { }; export type GetGizmosParams = { + /** @deprecated */ search?: string; }; diff --git a/packages/http-client/src/snapshot/zod/v1/types.ts b/packages/http-client/src/snapshot/zod/v1/types.ts index 869e6e1..1aa8292 100644 --- a/packages/http-client/src/snapshot/zod/v1/types.ts +++ b/packages/http-client/src/snapshot/zod/v1/types.ts @@ -135,6 +135,7 @@ export type ExhaustiveParamsParams = { }; export type GetGizmosParams = { + /** @deprecated */ search?: string; }; diff --git a/packages/typescript/src/interface-factory.ts b/packages/typescript/src/interface-factory.ts index 62238fa..1522580 100644 --- a/packages/typescript/src/interface-factory.ts +++ b/packages/typescript/src/interface-factory.ts @@ -376,9 +376,7 @@ function* internalBuildParamsType( yield '{'; for (const param of sortedParams) { - if (param.description) { - yield* buildDescription(param.description, param.deprecated?.value); - } + yield* buildDescription(param.description, param.deprecated?.value); yield ` ${buildParameterName(param)}${ isRequired(param.value) ? '' : '?' diff --git a/packages/typescript/src/spec/4.1-structure/4.1.15-parameter.spec.ts b/packages/typescript/src/spec/4.1-structure/4.1.15-parameter.spec.ts index 590034d..67994ec 100644 --- a/packages/typescript/src/spec/4.1-structure/4.1.15-parameter.spec.ts +++ b/packages/typescript/src/spec/4.1-structure/4.1.15-parameter.spec.ts @@ -132,9 +132,7 @@ describe('4.1.15 Parameter', () => { }); }); - // TODO: fix and enable these tests - // https://github.com/basketry/typescript/issues/136 - describe.skip('deprecated', () => { + describe('deprecated', () => { it('creates a parameter marked as deprecated', async () => { // ARRANGE const service = sut( @@ -174,6 +172,7 @@ describe('4.1.15 Parameter', () => { value: ir.primitiveValue({ typeName: ir.primitiveLiteral('string'), }), + deprecated: ir.trueLiteral(), }), );