strict-ts-lib-v5.1 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # strict-ts-lib-v5.1
2
2
 
3
+ ## 0.6.1
4
+
5
+ ### Patch Changes
6
+
7
+ - c5853e4: Spell numeric argument ranges with `UintRangeInclusive` instead of `UintRange`: `toFixed(fractionDigits?: UintRangeInclusive<0, 100>)` now names its bounds the way the docs do ("0 – 100, inclusive") rather than with an exclusive upper bound (`UintRange<0, 101>`). Applied to every converted range — `toString` radix, `toPrecision`, JSON `space`, `BigInt.asIntN/asUintN` bits, and the `Intl` digit options. The expanded literal-union types are unchanged; this is purely a notation change in the emitted declarations.
8
+
3
9
  ## 0.6.0
4
10
 
5
11
  ### Minor Changes
@@ -97,7 +97,7 @@ interface Math {
97
97
  * Returns the number of leading zero bits in the 32-bit binary representation of a number.
98
98
  * @param x A numeric expression.
99
99
  */
100
- clz32(x: number): import('ts-type-forge').UintRange<0, 33>;
100
+ clz32(x: number): import('ts-type-forge').UintRangeInclusive<0, 32>;
101
101
 
102
102
  /**
103
103
  * Returns the result of 32-bit multiplication of two numbers.
@@ -270,7 +270,7 @@ interface NumberConstructor {
270
270
  */
271
271
  parseInt(
272
272
  string: string,
273
- radix?: import('ts-type-forge').UintRange<2, 37>,
273
+ radix?: import('ts-type-forge').UintRangeInclusive<2, 36>,
274
274
  ): number;
275
275
  }
276
276
 
@@ -9,19 +9,19 @@ declare namespace Intl {
9
9
  readonly localeMatcher?: 'lookup' | 'best fit' | undefined;
10
10
  readonly type?: PluralRuleType | undefined;
11
11
  readonly minimumIntegerDigits?:
12
- | import('ts-type-forge').UintRange<1, 22>
12
+ | import('ts-type-forge').UintRangeInclusive<1, 21>
13
13
  | undefined;
14
14
  readonly minimumFractionDigits?:
15
- | import('ts-type-forge').UintRange<0, 21>
15
+ | import('ts-type-forge').UintRangeInclusive<0, 20>
16
16
  | undefined;
17
17
  readonly maximumFractionDigits?:
18
- | import('ts-type-forge').UintRange<0, 21>
18
+ | import('ts-type-forge').UintRangeInclusive<0, 20>
19
19
  | undefined;
20
20
  readonly minimumSignificantDigits?:
21
- | import('ts-type-forge').UintRange<1, 22>
21
+ | import('ts-type-forge').UintRangeInclusive<1, 21>
22
22
  | undefined;
23
23
  readonly maximumSignificantDigits?:
24
- | import('ts-type-forge').UintRange<1, 22>
24
+ | import('ts-type-forge').UintRangeInclusive<1, 21>
25
25
  | undefined;
26
26
  }
27
27
 
@@ -29,16 +29,25 @@ declare namespace Intl {
29
29
  readonly locale: string;
30
30
  readonly pluralCategories: readonly LDMLPluralRule[];
31
31
  readonly type: PluralRuleType;
32
- readonly minimumIntegerDigits: import('ts-type-forge').UintRange<1, 22>;
33
- readonly minimumFractionDigits: import('ts-type-forge').UintRange<0, 21>;
34
- readonly maximumFractionDigits: import('ts-type-forge').UintRange<0, 21>;
35
- readonly minimumSignificantDigits?: import('ts-type-forge').UintRange<
32
+ readonly minimumIntegerDigits: import('ts-type-forge').UintRangeInclusive<
36
33
  1,
37
- 22
34
+ 21
38
35
  >;
39
- readonly maximumSignificantDigits?: import('ts-type-forge').UintRange<
36
+ readonly minimumFractionDigits: import('ts-type-forge').UintRangeInclusive<
37
+ 0,
38
+ 20
39
+ >;
40
+ readonly maximumFractionDigits: import('ts-type-forge').UintRangeInclusive<
41
+ 0,
42
+ 20
43
+ >;
44
+ readonly minimumSignificantDigits?: import('ts-type-forge').UintRangeInclusive<
45
+ 1,
46
+ 21
47
+ >;
48
+ readonly maximumSignificantDigits?: import('ts-type-forge').UintRangeInclusive<
40
49
  1,
41
- 22
50
+ 21
42
51
  >;
43
52
  }
44
53
 
@@ -47,27 +47,42 @@ interface BigIntToLocaleStringOptions {
47
47
  /**
48
48
  * The minimum number of integer digits to use. Possible values are from 1 to 21; the default is 1.
49
49
  */
50
- readonly minimumIntegerDigits?: import('ts-type-forge').UintRange<1, 22>;
50
+ readonly minimumIntegerDigits?: import('ts-type-forge').UintRangeInclusive<
51
+ 1,
52
+ 21
53
+ >;
51
54
 
52
55
  /**
53
56
  * The minimum number of fraction digits to use. Possible values are from 0 to 20; the default for plain number and percent formatting is 0; the default for currency formatting is the number of minor unit digits provided by the {@link http://www.currency-iso.org/en/home/tables/table-a1.html ISO 4217 currency codes list} (2 if the list doesn't provide that information).
54
57
  */
55
- readonly minimumFractionDigits?: import('ts-type-forge').UintRange<0, 21>;
58
+ readonly minimumFractionDigits?: import('ts-type-forge').UintRangeInclusive<
59
+ 0,
60
+ 20
61
+ >;
56
62
 
57
63
  /**
58
64
  * The maximum number of fraction digits to use. Possible values are from 0 to 20; the default for plain number formatting is the larger of minimumFractionDigits and 3; the default for currency formatting is the larger of minimumFractionDigits and the number of minor unit digits provided by the {@link http://www.currency-iso.org/en/home/tables/table-a1.html ISO 4217 currency codes list} (2 if the list doesn't provide that information); the default for percent formatting is the larger of minimumFractionDigits and 0.
59
65
  */
60
- readonly maximumFractionDigits?: import('ts-type-forge').UintRange<0, 21>;
66
+ readonly maximumFractionDigits?: import('ts-type-forge').UintRangeInclusive<
67
+ 0,
68
+ 20
69
+ >;
61
70
 
62
71
  /**
63
72
  * The minimum number of significant digits to use. Possible values are from 1 to 21; the default is 1.
64
73
  */
65
- readonly minimumSignificantDigits?: import('ts-type-forge').UintRange<1, 22>;
74
+ readonly minimumSignificantDigits?: import('ts-type-forge').UintRangeInclusive<
75
+ 1,
76
+ 21
77
+ >;
66
78
 
67
79
  /**
68
80
  * The maximum number of significant digits to use. Possible values are from 1 to 21; the default is 21.
69
81
  */
70
- readonly maximumSignificantDigits?: import('ts-type-forge').UintRange<1, 22>;
82
+ readonly maximumSignificantDigits?: import('ts-type-forge').UintRangeInclusive<
83
+ 1,
84
+ 21
85
+ >;
71
86
 
72
87
  /**
73
88
  * The formatting that should be displayed for the number, the defaults is "standard"
@@ -93,7 +108,7 @@ interface BigInt {
93
108
  * Returns a string representation of an object.
94
109
  * @param radix Specifies a radix for converting numeric values to strings.
95
110
  */
96
- toString(radix?: import('ts-type-forge').UintRange<2, 37>): string;
111
+ toString(radix?: import('ts-type-forge').UintRangeInclusive<2, 36>): string;
97
112
 
98
113
  /** Returns a string representation appropriate to the host environment's current locale. */
99
114
  toLocaleString(
@@ -117,14 +132,20 @@ interface BigIntConstructor {
117
132
  * @param bits The number of low bits to use
118
133
  * @param int The BigInt whose bits to extract
119
134
  */
120
- asIntN(bits: import('ts-type-forge').UintRange<0, 65>, int: bigint): bigint;
135
+ asIntN(
136
+ bits: import('ts-type-forge').UintRangeInclusive<0, 64>,
137
+ int: bigint,
138
+ ): bigint;
121
139
  /**
122
140
  * Interprets the low bits of a BigInt as an unsigned integer.
123
141
  * All higher bits are discarded.
124
142
  * @param bits The number of low bits to use
125
143
  * @param int The BigInt whose bits to extract
126
144
  */
127
- asUintN(bits: import('ts-type-forge').UintRange<0, 65>, int: bigint): bigint;
145
+ asUintN(
146
+ bits: import('ts-type-forge').UintRangeInclusive<0, 64>,
147
+ int: bigint,
148
+ ): bigint;
128
149
  }
129
150
 
130
151
  declare const BigInt: BigIntConstructor;
@@ -26,7 +26,7 @@ declare function eval(x: string): unknown;
26
26
  */
27
27
  declare function parseInt(
28
28
  string: string,
29
- radix?: import('ts-type-forge').UintRange<2, 37>,
29
+ radix?: import('ts-type-forge').UintRangeInclusive<2, 36>,
30
30
  ): number;
31
31
 
32
32
  /**
@@ -632,27 +632,31 @@ interface Number {
632
632
  * Returns a string representation of an object.
633
633
  * @param radix Specifies a radix for converting numeric values to strings. This value is only used for numbers.
634
634
  */
635
- toString(radix?: import('ts-type-forge').UintRange<2, 37>): string;
635
+ toString(radix?: import('ts-type-forge').UintRangeInclusive<2, 36>): string;
636
636
 
637
637
  /**
638
638
  * Returns a string representing a number in fixed-point notation.
639
639
  * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
640
640
  */
641
- toFixed(fractionDigits?: import('ts-type-forge').UintRange<0, 101>): string;
641
+ toFixed(
642
+ fractionDigits?: import('ts-type-forge').UintRangeInclusive<0, 100>,
643
+ ): string;
642
644
 
643
645
  /**
644
646
  * Returns a string containing a number represented in exponential notation.
645
647
  * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
646
648
  */
647
649
  toExponential(
648
- fractionDigits?: import('ts-type-forge').UintRange<1, 101>,
650
+ fractionDigits?: import('ts-type-forge').UintRangeInclusive<1, 100>,
649
651
  ): string;
650
652
 
651
653
  /**
652
654
  * Returns a string containing a number represented either in exponential or fixed-point notation with a specified number of digits.
653
655
  * @param precision Number of significant digits. Must be in the range 1 - 21, inclusive.
654
656
  */
655
- toPrecision(precision?: import('ts-type-forge').UintRange<1, 101>): string;
657
+ toPrecision(
658
+ precision?: import('ts-type-forge').UintRangeInclusive<1, 100>,
659
+ ): string;
656
660
 
657
661
  /** Returns the primitive value of the specified object. */
658
662
  valueOf(): number;
@@ -1247,7 +1251,7 @@ interface JSON {
1247
1251
  stringify(
1248
1252
  value: unknown,
1249
1253
  replacer?: (this: unknown, key: string, value: unknown) => unknown,
1250
- space?: string | import('ts-type-forge').UintRange<1, 11>,
1254
+ space?: string | import('ts-type-forge').UintRangeInclusive<1, 10>,
1251
1255
  ): string;
1252
1256
  /**
1253
1257
  * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
@@ -1258,7 +1262,7 @@ interface JSON {
1258
1262
  stringify(
1259
1263
  value: unknown,
1260
1264
  replacer?: readonly (number | string)[] | null,
1261
- space?: string | import('ts-type-forge').UintRange<1, 11>,
1265
+ space?: string | import('ts-type-forge').UintRangeInclusive<1, 10>,
1262
1266
  ): string;
1263
1267
  }
1264
1268
 
@@ -5520,19 +5524,19 @@ declare namespace Intl {
5520
5524
  readonly currencySign?: string | undefined;
5521
5525
  readonly useGrouping?: boolean | undefined;
5522
5526
  readonly minimumIntegerDigits?:
5523
- | import('ts-type-forge').UintRange<1, 22>
5527
+ | import('ts-type-forge').UintRangeInclusive<1, 21>
5524
5528
  | undefined;
5525
5529
  readonly minimumFractionDigits?:
5526
- | import('ts-type-forge').UintRange<0, 21>
5530
+ | import('ts-type-forge').UintRangeInclusive<0, 20>
5527
5531
  | undefined;
5528
5532
  readonly maximumFractionDigits?:
5529
- | import('ts-type-forge').UintRange<0, 21>
5533
+ | import('ts-type-forge').UintRangeInclusive<0, 20>
5530
5534
  | undefined;
5531
5535
  readonly minimumSignificantDigits?:
5532
- | import('ts-type-forge').UintRange<1, 22>
5536
+ | import('ts-type-forge').UintRangeInclusive<1, 21>
5533
5537
  | undefined;
5534
5538
  readonly maximumSignificantDigits?:
5535
- | import('ts-type-forge').UintRange<1, 22>
5539
+ | import('ts-type-forge').UintRangeInclusive<1, 21>
5536
5540
  | undefined;
5537
5541
  }
5538
5542
 
@@ -5541,16 +5545,25 @@ declare namespace Intl {
5541
5545
  readonly numberingSystem: string;
5542
5546
  readonly style: string;
5543
5547
  readonly currency?: string;
5544
- readonly minimumIntegerDigits: import('ts-type-forge').UintRange<1, 22>;
5545
- readonly minimumFractionDigits: import('ts-type-forge').UintRange<0, 21>;
5546
- readonly maximumFractionDigits: import('ts-type-forge').UintRange<0, 21>;
5547
- readonly minimumSignificantDigits?: import('ts-type-forge').UintRange<
5548
+ readonly minimumIntegerDigits: import('ts-type-forge').UintRangeInclusive<
5549
+ 1,
5550
+ 21
5551
+ >;
5552
+ readonly minimumFractionDigits: import('ts-type-forge').UintRangeInclusive<
5553
+ 0,
5554
+ 20
5555
+ >;
5556
+ readonly maximumFractionDigits: import('ts-type-forge').UintRangeInclusive<
5557
+ 0,
5558
+ 20
5559
+ >;
5560
+ readonly minimumSignificantDigits?: import('ts-type-forge').UintRangeInclusive<
5548
5561
  1,
5549
- 22
5562
+ 21
5550
5563
  >;
5551
- readonly maximumSignificantDigits?: import('ts-type-forge').UintRange<
5564
+ readonly maximumSignificantDigits?: import('ts-type-forge').UintRangeInclusive<
5552
5565
  1,
5553
- 22
5566
+ 21
5554
5567
  >;
5555
5568
  readonly useGrouping: boolean;
5556
5569
  }
@@ -117,7 +117,7 @@ interface Math {
117
117
  * Returns the number of leading zero bits in the 32-bit binary representation of a number.
118
118
  * @param x A numeric expression.
119
119
  */
120
- clz32(x: number): import('ts-type-forge').UintRange<0, 33>;
120
+ clz32(x: number): import('ts-type-forge').UintRangeInclusive<0, 32>;
121
121
 
122
122
  /**
123
123
  * Returns the result of 32-bit multiplication of two numbers.
@@ -310,7 +310,7 @@ interface NumberConstructor {
310
310
  */
311
311
  parseInt(
312
312
  string: string,
313
- radix?: import('ts-type-forge').UintRange<2, 37>,
313
+ radix?: import('ts-type-forge').UintRangeInclusive<2, 36>,
314
314
  ): import('ts-type-forge').Int | import('ts-type-forge').NaNType;
315
315
  }
316
316
 
@@ -9,19 +9,19 @@ declare namespace Intl {
9
9
  readonly localeMatcher?: 'lookup' | 'best fit' | undefined;
10
10
  readonly type?: PluralRuleType | undefined;
11
11
  readonly minimumIntegerDigits?:
12
- | import('ts-type-forge').UintRange<1, 22>
12
+ | import('ts-type-forge').UintRangeInclusive<1, 21>
13
13
  | undefined;
14
14
  readonly minimumFractionDigits?:
15
- | import('ts-type-forge').UintRange<0, 21>
15
+ | import('ts-type-forge').UintRangeInclusive<0, 20>
16
16
  | undefined;
17
17
  readonly maximumFractionDigits?:
18
- | import('ts-type-forge').UintRange<0, 21>
18
+ | import('ts-type-forge').UintRangeInclusive<0, 20>
19
19
  | undefined;
20
20
  readonly minimumSignificantDigits?:
21
- | import('ts-type-forge').UintRange<1, 22>
21
+ | import('ts-type-forge').UintRangeInclusive<1, 21>
22
22
  | undefined;
23
23
  readonly maximumSignificantDigits?:
24
- | import('ts-type-forge').UintRange<1, 22>
24
+ | import('ts-type-forge').UintRangeInclusive<1, 21>
25
25
  | undefined;
26
26
  }
27
27
 
@@ -29,16 +29,25 @@ declare namespace Intl {
29
29
  readonly locale: string;
30
30
  readonly pluralCategories: readonly LDMLPluralRule[];
31
31
  readonly type: PluralRuleType;
32
- readonly minimumIntegerDigits: import('ts-type-forge').UintRange<1, 22>;
33
- readonly minimumFractionDigits: import('ts-type-forge').UintRange<0, 21>;
34
- readonly maximumFractionDigits: import('ts-type-forge').UintRange<0, 21>;
35
- readonly minimumSignificantDigits?: import('ts-type-forge').UintRange<
32
+ readonly minimumIntegerDigits: import('ts-type-forge').UintRangeInclusive<
36
33
  1,
37
- 22
34
+ 21
38
35
  >;
39
- readonly maximumSignificantDigits?: import('ts-type-forge').UintRange<
36
+ readonly minimumFractionDigits: import('ts-type-forge').UintRangeInclusive<
37
+ 0,
38
+ 20
39
+ >;
40
+ readonly maximumFractionDigits: import('ts-type-forge').UintRangeInclusive<
41
+ 0,
42
+ 20
43
+ >;
44
+ readonly minimumSignificantDigits?: import('ts-type-forge').UintRangeInclusive<
45
+ 1,
46
+ 21
47
+ >;
48
+ readonly maximumSignificantDigits?: import('ts-type-forge').UintRangeInclusive<
40
49
  1,
41
- 22
50
+ 21
42
51
  >;
43
52
  }
44
53
 
@@ -47,27 +47,42 @@ interface BigIntToLocaleStringOptions {
47
47
  /**
48
48
  * The minimum number of integer digits to use. Possible values are from 1 to 21; the default is 1.
49
49
  */
50
- readonly minimumIntegerDigits?: import('ts-type-forge').UintRange<1, 22>;
50
+ readonly minimumIntegerDigits?: import('ts-type-forge').UintRangeInclusive<
51
+ 1,
52
+ 21
53
+ >;
51
54
 
52
55
  /**
53
56
  * The minimum number of fraction digits to use. Possible values are from 0 to 20; the default for plain number and percent formatting is 0; the default for currency formatting is the number of minor unit digits provided by the {@link http://www.currency-iso.org/en/home/tables/table-a1.html ISO 4217 currency codes list} (2 if the list doesn't provide that information).
54
57
  */
55
- readonly minimumFractionDigits?: import('ts-type-forge').UintRange<0, 21>;
58
+ readonly minimumFractionDigits?: import('ts-type-forge').UintRangeInclusive<
59
+ 0,
60
+ 20
61
+ >;
56
62
 
57
63
  /**
58
64
  * The maximum number of fraction digits to use. Possible values are from 0 to 20; the default for plain number formatting is the larger of minimumFractionDigits and 3; the default for currency formatting is the larger of minimumFractionDigits and the number of minor unit digits provided by the {@link http://www.currency-iso.org/en/home/tables/table-a1.html ISO 4217 currency codes list} (2 if the list doesn't provide that information); the default for percent formatting is the larger of minimumFractionDigits and 0.
59
65
  */
60
- readonly maximumFractionDigits?: import('ts-type-forge').UintRange<0, 21>;
66
+ readonly maximumFractionDigits?: import('ts-type-forge').UintRangeInclusive<
67
+ 0,
68
+ 20
69
+ >;
61
70
 
62
71
  /**
63
72
  * The minimum number of significant digits to use. Possible values are from 1 to 21; the default is 1.
64
73
  */
65
- readonly minimumSignificantDigits?: import('ts-type-forge').UintRange<1, 22>;
74
+ readonly minimumSignificantDigits?: import('ts-type-forge').UintRangeInclusive<
75
+ 1,
76
+ 21
77
+ >;
66
78
 
67
79
  /**
68
80
  * The maximum number of significant digits to use. Possible values are from 1 to 21; the default is 21.
69
81
  */
70
- readonly maximumSignificantDigits?: import('ts-type-forge').UintRange<1, 22>;
82
+ readonly maximumSignificantDigits?: import('ts-type-forge').UintRangeInclusive<
83
+ 1,
84
+ 21
85
+ >;
71
86
 
72
87
  /**
73
88
  * The formatting that should be displayed for the number, the defaults is "standard"
@@ -93,7 +108,7 @@ interface BigInt {
93
108
  * Returns a string representation of an object.
94
109
  * @param radix Specifies a radix for converting numeric values to strings.
95
110
  */
96
- toString(radix?: import('ts-type-forge').UintRange<2, 37>): string;
111
+ toString(radix?: import('ts-type-forge').UintRangeInclusive<2, 36>): string;
97
112
 
98
113
  /** Returns a string representation appropriate to the host environment's current locale. */
99
114
  toLocaleString(
@@ -117,14 +132,20 @@ interface BigIntConstructor {
117
132
  * @param bits The number of low bits to use
118
133
  * @param int The BigInt whose bits to extract
119
134
  */
120
- asIntN(bits: import('ts-type-forge').UintRange<0, 65>, int: bigint): bigint;
135
+ asIntN(
136
+ bits: import('ts-type-forge').UintRangeInclusive<0, 64>,
137
+ int: bigint,
138
+ ): bigint;
121
139
  /**
122
140
  * Interprets the low bits of a BigInt as an unsigned integer.
123
141
  * All higher bits are discarded.
124
142
  * @param bits The number of low bits to use
125
143
  * @param int The BigInt whose bits to extract
126
144
  */
127
- asUintN(bits: import('ts-type-forge').UintRange<0, 65>, int: bigint): bigint;
145
+ asUintN(
146
+ bits: import('ts-type-forge').UintRangeInclusive<0, 64>,
147
+ int: bigint,
148
+ ): bigint;
128
149
  }
129
150
 
130
151
  declare const BigInt: BigIntConstructor;
@@ -26,7 +26,7 @@ declare function eval(x: string): unknown;
26
26
  */
27
27
  declare function parseInt(
28
28
  string: string,
29
- radix?: import('ts-type-forge').UintRange<2, 37>,
29
+ radix?: import('ts-type-forge').UintRangeInclusive<2, 36>,
30
30
  ): import('ts-type-forge').Int | import('ts-type-forge').NaNType;
31
31
 
32
32
  /**
@@ -652,27 +652,31 @@ interface Number {
652
652
  * Returns a string representation of an object.
653
653
  * @param radix Specifies a radix for converting numeric values to strings. This value is only used for numbers.
654
654
  */
655
- toString(radix?: import('ts-type-forge').UintRange<2, 37>): string;
655
+ toString(radix?: import('ts-type-forge').UintRangeInclusive<2, 36>): string;
656
656
 
657
657
  /**
658
658
  * Returns a string representing a number in fixed-point notation.
659
659
  * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
660
660
  */
661
- toFixed(fractionDigits?: import('ts-type-forge').UintRange<0, 101>): string;
661
+ toFixed(
662
+ fractionDigits?: import('ts-type-forge').UintRangeInclusive<0, 100>,
663
+ ): string;
662
664
 
663
665
  /**
664
666
  * Returns a string containing a number represented in exponential notation.
665
667
  * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
666
668
  */
667
669
  toExponential(
668
- fractionDigits?: import('ts-type-forge').UintRange<1, 101>,
670
+ fractionDigits?: import('ts-type-forge').UintRangeInclusive<1, 100>,
669
671
  ): string;
670
672
 
671
673
  /**
672
674
  * Returns a string containing a number represented either in exponential or fixed-point notation with a specified number of digits.
673
675
  * @param precision Number of significant digits. Must be in the range 1 - 21, inclusive.
674
676
  */
675
- toPrecision(precision?: import('ts-type-forge').UintRange<1, 101>): string;
677
+ toPrecision(
678
+ precision?: import('ts-type-forge').UintRangeInclusive<1, 100>,
679
+ ): string;
676
680
 
677
681
  /** Returns the primitive value of the specified object. */
678
682
  valueOf(): number;
@@ -1315,7 +1319,7 @@ interface JSON {
1315
1319
  stringify(
1316
1320
  value: unknown,
1317
1321
  replacer?: (this: unknown, key: string, value: unknown) => unknown,
1318
- space?: string | import('ts-type-forge').UintRange<1, 11>,
1322
+ space?: string | import('ts-type-forge').UintRangeInclusive<1, 10>,
1319
1323
  ): string;
1320
1324
  /**
1321
1325
  * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
@@ -1326,7 +1330,7 @@ interface JSON {
1326
1330
  stringify(
1327
1331
  value: unknown,
1328
1332
  replacer?: readonly (number | string)[] | null,
1329
- space?: string | import('ts-type-forge').UintRange<1, 11>,
1333
+ space?: string | import('ts-type-forge').UintRangeInclusive<1, 10>,
1330
1334
  ): string;
1331
1335
  }
1332
1336
 
@@ -6145,19 +6149,19 @@ declare namespace Intl {
6145
6149
  readonly currencySign?: string | undefined;
6146
6150
  readonly useGrouping?: boolean | undefined;
6147
6151
  readonly minimumIntegerDigits?:
6148
- | import('ts-type-forge').UintRange<1, 22>
6152
+ | import('ts-type-forge').UintRangeInclusive<1, 21>
6149
6153
  | undefined;
6150
6154
  readonly minimumFractionDigits?:
6151
- | import('ts-type-forge').UintRange<0, 21>
6155
+ | import('ts-type-forge').UintRangeInclusive<0, 20>
6152
6156
  | undefined;
6153
6157
  readonly maximumFractionDigits?:
6154
- | import('ts-type-forge').UintRange<0, 21>
6158
+ | import('ts-type-forge').UintRangeInclusive<0, 20>
6155
6159
  | undefined;
6156
6160
  readonly minimumSignificantDigits?:
6157
- | import('ts-type-forge').UintRange<1, 22>
6161
+ | import('ts-type-forge').UintRangeInclusive<1, 21>
6158
6162
  | undefined;
6159
6163
  readonly maximumSignificantDigits?:
6160
- | import('ts-type-forge').UintRange<1, 22>
6164
+ | import('ts-type-forge').UintRangeInclusive<1, 21>
6161
6165
  | undefined;
6162
6166
  }
6163
6167
 
@@ -6166,16 +6170,25 @@ declare namespace Intl {
6166
6170
  readonly numberingSystem: string;
6167
6171
  readonly style: string;
6168
6172
  readonly currency?: string;
6169
- readonly minimumIntegerDigits: import('ts-type-forge').UintRange<1, 22>;
6170
- readonly minimumFractionDigits: import('ts-type-forge').UintRange<0, 21>;
6171
- readonly maximumFractionDigits: import('ts-type-forge').UintRange<0, 21>;
6172
- readonly minimumSignificantDigits?: import('ts-type-forge').UintRange<
6173
+ readonly minimumIntegerDigits: import('ts-type-forge').UintRangeInclusive<
6174
+ 1,
6175
+ 21
6176
+ >;
6177
+ readonly minimumFractionDigits: import('ts-type-forge').UintRangeInclusive<
6178
+ 0,
6179
+ 20
6180
+ >;
6181
+ readonly maximumFractionDigits: import('ts-type-forge').UintRangeInclusive<
6182
+ 0,
6183
+ 20
6184
+ >;
6185
+ readonly minimumSignificantDigits?: import('ts-type-forge').UintRangeInclusive<
6173
6186
  1,
6174
- 22
6187
+ 21
6175
6188
  >;
6176
- readonly maximumSignificantDigits?: import('ts-type-forge').UintRange<
6189
+ readonly maximumSignificantDigits?: import('ts-type-forge').UintRangeInclusive<
6177
6190
  1,
6178
- 22
6191
+ 21
6179
6192
  >;
6180
6193
  readonly useGrouping: boolean;
6181
6194
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "strict-ts-lib-v5.1",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "private": false,
5
5
  "description": "Strict TypeScript 5.1.6 standard library (all libs in one package)",
6
6
  "license": "Apache-2.0",