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
1 change: 1 addition & 0 deletions packages/express/src/snapshot/zod/v1/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ export type ExhaustiveParamsParams = {
};

export type GetGizmosParams = {
/** @deprecated */
search?: string;
};

Expand Down
1 change: 1 addition & 0 deletions packages/http-client/src/snapshot/zod/v1/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ export type ExhaustiveParamsParams = {
};

export type GetGizmosParams = {
/** @deprecated */
search?: string;
};

Expand Down
4 changes: 1 addition & 3 deletions packages/typescript/src/interface-factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) ? '' : '?'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -174,6 +172,7 @@ describe('4.1.15 Parameter', () => {
value: ir.primitiveValue({
typeName: ir.primitiveLiteral('string'),
}),
deprecated: ir.trueLiteral(),
}),
);

Expand Down