strict-ts-lib-v6.0 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-v6.0
|
|
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
|
@@ -645,7 +645,7 @@ interface Number {
|
|
|
645
645
|
* @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
|
|
646
646
|
*/
|
|
647
647
|
toExponential(
|
|
648
|
-
fractionDigits?: import('ts-type-forge').UintRangeInclusive<
|
|
648
|
+
fractionDigits?: import('ts-type-forge').UintRangeInclusive<0, 100>,
|
|
649
649
|
): string;
|
|
650
650
|
|
|
651
651
|
/**
|
|
@@ -665,7 +665,7 @@ interface Number {
|
|
|
665
665
|
* @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
|
|
666
666
|
*/
|
|
667
667
|
toExponential(
|
|
668
|
-
fractionDigits?: import('ts-type-forge').UintRangeInclusive<
|
|
668
|
+
fractionDigits?: import('ts-type-forge').UintRangeInclusive<0, 100>,
|
|
669
669
|
): string;
|
|
670
670
|
|
|
671
671
|
/**
|