File tree 2 files changed +2
-2
lines changed
src/__tests__/__snapshots__
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -265,7 +265,7 @@ import { WithinRangeInteger } from \\"italia-ts-commons/lib/numbers\\";
265
265
import * as t from \\"io-ts\\";
266
266
267
267
export type WithinRangeIntegerTest = t.TypeOf<typeof WithinRangeIntegerTest >;
268
- export const WithinRangeIntegerTest = WithinRangeInteger(0, 10 );
268
+ export const WithinRangeIntegerTest = WithinRangeInteger(0, 11 );
269
269
"
270
270
`;
271
271
Original file line number Diff line number Diff line change 87
87
{% macro defineInteger (definitionName , definition , inline = false ) -%}
88
88
{% if definition .minimum != undefined and definition .maximum != undefined %}
89
89
{{- ' import { WithinRangeInteger } from "italia-ts-commons/lib/numbers";' | addImport -}}
90
- {% set typedef %} WithinRangeInteger({{ definition .minimum }} , {{ definition .maximum }} ){% endset %}
90
+ {% set typedef %} WithinRangeInteger({{ definition .minimum }} , {{ definition .maximum + 1 }} ){% endset %}
91
91
{% elif definition .minimum == " 0" %}
92
92
{{- ' import { NonNegativeInteger } from "italia-ts-commons/lib/numbers";' | addImport -}}
93
93
{% set typedef %} NonNegativeInteger{% endset %}
You can’t perform that action at this time.
0 commit comments