strict-ts-lib-v5.6 0.6.1 → 0.6.2
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 +6 -0
- package/libs/es5/index.d.ts +1 -1
- package/libs-branded/es5/index.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# strict-ts-lib-v5.6
|
|
2
2
|
|
|
3
|
+
## 0.6.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 68452d4: Allow `0` as `toExponential`'s `fractionDigits`: the parameter type becomes `UintRangeInclusive<0, 100>`. ECMA-262 accepts 0–100 — `(1).toExponential(0)` is legal and returns `'1e+0'` — so the previous lower bound of 1 rejected a valid call.
|
|
8
|
+
|
|
3
9
|
## 0.6.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/libs/es5/index.d.ts
CHANGED
|
@@ -647,7 +647,7 @@ interface Number {
|
|
|
647
647
|
* @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
|
|
648
648
|
*/
|
|
649
649
|
toExponential(
|
|
650
|
-
fractionDigits?: import('ts-type-forge').UintRangeInclusive<
|
|
650
|
+
fractionDigits?: import('ts-type-forge').UintRangeInclusive<0, 100>,
|
|
651
651
|
): string;
|
|
652
652
|
|
|
653
653
|
/**
|
|
@@ -667,7 +667,7 @@ interface Number {
|
|
|
667
667
|
* @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
|
|
668
668
|
*/
|
|
669
669
|
toExponential(
|
|
670
|
-
fractionDigits?: import('ts-type-forge').UintRangeInclusive<
|
|
670
|
+
fractionDigits?: import('ts-type-forge').UintRangeInclusive<0, 100>,
|
|
671
671
|
): string;
|
|
672
672
|
|
|
673
673
|
/**
|