@formatjs/ecma402-abstract 1.15.0 → 1.17.0
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/262.d.ts +1 -2
- package/CanonicalizeLocaleList.d.ts +0 -1
- package/CanonicalizeTimeZoneName.d.ts +0 -1
- package/CoerceOptionsToObject.d.ts +0 -1
- package/DefaultNumberOption.d.ts +0 -1
- package/GetNumberOption.d.ts +0 -1
- package/GetOption.d.ts +0 -1
- package/GetOptionsObject.d.ts +0 -1
- package/GetStringOrBooleanOption.d.ts +0 -1
- package/IsSanctionedSimpleUnitIdentifier.d.ts +0 -1
- package/IsValidTimeZoneName.d.ts +0 -1
- package/IsWellFormedCurrencyCode.d.ts +0 -1
- package/IsWellFormedUnitIdentifier.d.ts +0 -1
- package/NumberFormat/ApplyUnsignedRoundingMode.d.ts +0 -1
- package/NumberFormat/CollapseNumberRange.d.ts +0 -1
- package/NumberFormat/ComputeExponent.d.ts +0 -1
- package/NumberFormat/ComputeExponentForMagnitude.d.ts +0 -1
- package/NumberFormat/CurrencyDigits.d.ts +0 -1
- package/NumberFormat/FormatApproximately.d.ts +0 -1
- package/NumberFormat/FormatNumericRange.d.ts +0 -1
- package/NumberFormat/FormatNumericRangeToParts.d.ts +0 -1
- package/NumberFormat/FormatNumericToParts.d.ts +0 -1
- package/NumberFormat/FormatNumericToString.d.ts +0 -1
- package/NumberFormat/GetUnsignedRoundingMode.d.ts +0 -1
- package/NumberFormat/InitializeNumberFormat.d.ts +0 -1
- package/NumberFormat/PartitionNumberPattern.d.ts +0 -1
- package/NumberFormat/PartitionNumberRangePattern.d.ts +0 -1
- package/NumberFormat/SetNumberFormatDigitOptions.d.ts +0 -1
- package/NumberFormat/SetNumberFormatUnitOptions.d.ts +0 -1
- package/NumberFormat/ToRawFixed.d.ts +0 -1
- package/NumberFormat/ToRawPrecision.d.ts +0 -1
- package/NumberFormat/digit-mapping.generated.d.ts +0 -1
- package/NumberFormat/format_to_parts.d.ts +0 -1
- package/PartitionPattern.d.ts +0 -1
- package/SupportedLocales.d.ts +0 -1
- package/data.d.ts +0 -1
- package/index.d.ts +0 -1
- package/lib/262.d.ts +1 -2
- package/lib/CanonicalizeLocaleList.d.ts +0 -1
- package/lib/CanonicalizeTimeZoneName.d.ts +0 -1
- package/lib/CoerceOptionsToObject.d.ts +0 -1
- package/lib/DefaultNumberOption.d.ts +0 -1
- package/lib/GetNumberOption.d.ts +0 -1
- package/lib/GetOption.d.ts +0 -1
- package/lib/GetOptionsObject.d.ts +0 -1
- package/lib/GetStringOrBooleanOption.d.ts +0 -1
- package/lib/IsSanctionedSimpleUnitIdentifier.d.ts +0 -1
- package/lib/IsValidTimeZoneName.d.ts +0 -1
- package/lib/IsWellFormedCurrencyCode.d.ts +0 -1
- package/lib/IsWellFormedUnitIdentifier.d.ts +0 -1
- package/lib/NumberFormat/ApplyUnsignedRoundingMode.d.ts +0 -1
- package/lib/NumberFormat/CollapseNumberRange.d.ts +0 -1
- package/lib/NumberFormat/ComputeExponent.d.ts +0 -1
- package/lib/NumberFormat/ComputeExponentForMagnitude.d.ts +0 -1
- package/lib/NumberFormat/CurrencyDigits.d.ts +0 -1
- package/lib/NumberFormat/FormatApproximately.d.ts +0 -1
- package/lib/NumberFormat/FormatNumericRange.d.ts +0 -1
- package/lib/NumberFormat/FormatNumericRangeToParts.d.ts +0 -1
- package/lib/NumberFormat/FormatNumericToParts.d.ts +0 -1
- package/lib/NumberFormat/FormatNumericToString.d.ts +0 -1
- package/lib/NumberFormat/GetUnsignedRoundingMode.d.ts +0 -1
- package/lib/NumberFormat/InitializeNumberFormat.d.ts +0 -1
- package/lib/NumberFormat/PartitionNumberPattern.d.ts +0 -1
- package/lib/NumberFormat/PartitionNumberRangePattern.d.ts +0 -1
- package/lib/NumberFormat/SetNumberFormatDigitOptions.d.ts +0 -1
- package/lib/NumberFormat/SetNumberFormatUnitOptions.d.ts +0 -1
- package/lib/NumberFormat/ToRawFixed.d.ts +0 -1
- package/lib/NumberFormat/ToRawPrecision.d.ts +0 -1
- package/lib/NumberFormat/digit-mapping.generated.d.ts +0 -1
- package/lib/NumberFormat/format_to_parts.d.ts +0 -1
- package/lib/PartitionPattern.d.ts +0 -1
- package/lib/SupportedLocales.d.ts +0 -1
- package/lib/data.d.ts +0 -1
- package/lib/index.d.ts +0 -1
- package/lib/regex.generated.d.ts +0 -1
- package/lib/types/core.d.ts +0 -1
- package/lib/types/date-time.d.ts +0 -1
- package/lib/types/displaynames.d.ts +0 -1
- package/lib/types/list.d.ts +0 -1
- package/lib/types/number.d.ts +0 -1
- package/lib/types/plural-rules.d.ts +0 -1
- package/lib/types/relative-time.d.ts +0 -1
- package/lib/utils.d.ts +0 -1
- package/package.json +3 -3
- package/regex.generated.d.ts +0 -1
- package/types/core.d.ts +0 -1
- package/types/date-time.d.ts +0 -1
- package/types/displaynames.d.ts +0 -1
- package/types/list.d.ts +0 -1
- package/types/number.d.ts +0 -1
- package/types/plural-rules.d.ts +0 -1
- package/types/relative-time.d.ts +0 -1
- package/utils.d.ts +0 -1
- package/262.d.ts.map +0 -1
- package/CanonicalizeLocaleList.d.ts.map +0 -1
- package/CanonicalizeTimeZoneName.d.ts.map +0 -1
- package/CoerceOptionsToObject.d.ts.map +0 -1
- package/DefaultNumberOption.d.ts.map +0 -1
- package/GetNumberOption.d.ts.map +0 -1
- package/GetOption.d.ts.map +0 -1
- package/GetOptionsObject.d.ts.map +0 -1
- package/GetStringOrBooleanOption.d.ts.map +0 -1
- package/IsSanctionedSimpleUnitIdentifier.d.ts.map +0 -1
- package/IsValidTimeZoneName.d.ts.map +0 -1
- package/IsWellFormedCurrencyCode.d.ts.map +0 -1
- package/IsWellFormedUnitIdentifier.d.ts.map +0 -1
- package/NumberFormat/ApplyUnsignedRoundingMode.d.ts.map +0 -1
- package/NumberFormat/CollapseNumberRange.d.ts.map +0 -1
- package/NumberFormat/ComputeExponent.d.ts.map +0 -1
- package/NumberFormat/ComputeExponentForMagnitude.d.ts.map +0 -1
- package/NumberFormat/CurrencyDigits.d.ts.map +0 -1
- package/NumberFormat/FormatApproximately.d.ts.map +0 -1
- package/NumberFormat/FormatNumericRange.d.ts.map +0 -1
- package/NumberFormat/FormatNumericRangeToParts.d.ts.map +0 -1
- package/NumberFormat/FormatNumericToParts.d.ts.map +0 -1
- package/NumberFormat/FormatNumericToString.d.ts.map +0 -1
- package/NumberFormat/GetUnsignedRoundingMode.d.ts.map +0 -1
- package/NumberFormat/InitializeNumberFormat.d.ts.map +0 -1
- package/NumberFormat/PartitionNumberPattern.d.ts.map +0 -1
- package/NumberFormat/PartitionNumberRangePattern.d.ts.map +0 -1
- package/NumberFormat/SetNumberFormatDigitOptions.d.ts.map +0 -1
- package/NumberFormat/SetNumberFormatUnitOptions.d.ts.map +0 -1
- package/NumberFormat/ToRawFixed.d.ts.map +0 -1
- package/NumberFormat/ToRawPrecision.d.ts.map +0 -1
- package/NumberFormat/digit-mapping.generated.d.ts.map +0 -1
- package/NumberFormat/format_to_parts.d.ts.map +0 -1
- package/PartitionPattern.d.ts.map +0 -1
- package/SupportedLocales.d.ts.map +0 -1
- package/data.d.ts.map +0 -1
- package/index.d.ts.map +0 -1
- package/lib/262.d.ts.map +0 -1
- package/lib/CanonicalizeLocaleList.d.ts.map +0 -1
- package/lib/CanonicalizeTimeZoneName.d.ts.map +0 -1
- package/lib/CoerceOptionsToObject.d.ts.map +0 -1
- package/lib/DefaultNumberOption.d.ts.map +0 -1
- package/lib/GetNumberOption.d.ts.map +0 -1
- package/lib/GetOption.d.ts.map +0 -1
- package/lib/GetOptionsObject.d.ts.map +0 -1
- package/lib/GetStringOrBooleanOption.d.ts.map +0 -1
- package/lib/IsSanctionedSimpleUnitIdentifier.d.ts.map +0 -1
- package/lib/IsValidTimeZoneName.d.ts.map +0 -1
- package/lib/IsWellFormedCurrencyCode.d.ts.map +0 -1
- package/lib/IsWellFormedUnitIdentifier.d.ts.map +0 -1
- package/lib/NumberFormat/ApplyUnsignedRoundingMode.d.ts.map +0 -1
- package/lib/NumberFormat/CollapseNumberRange.d.ts.map +0 -1
- package/lib/NumberFormat/ComputeExponent.d.ts.map +0 -1
- package/lib/NumberFormat/ComputeExponentForMagnitude.d.ts.map +0 -1
- package/lib/NumberFormat/CurrencyDigits.d.ts.map +0 -1
- package/lib/NumberFormat/FormatApproximately.d.ts.map +0 -1
- package/lib/NumberFormat/FormatNumericRange.d.ts.map +0 -1
- package/lib/NumberFormat/FormatNumericRangeToParts.d.ts.map +0 -1
- package/lib/NumberFormat/FormatNumericToParts.d.ts.map +0 -1
- package/lib/NumberFormat/FormatNumericToString.d.ts.map +0 -1
- package/lib/NumberFormat/GetUnsignedRoundingMode.d.ts.map +0 -1
- package/lib/NumberFormat/InitializeNumberFormat.d.ts.map +0 -1
- package/lib/NumberFormat/PartitionNumberPattern.d.ts.map +0 -1
- package/lib/NumberFormat/PartitionNumberRangePattern.d.ts.map +0 -1
- package/lib/NumberFormat/SetNumberFormatDigitOptions.d.ts.map +0 -1
- package/lib/NumberFormat/SetNumberFormatUnitOptions.d.ts.map +0 -1
- package/lib/NumberFormat/ToRawFixed.d.ts.map +0 -1
- package/lib/NumberFormat/ToRawPrecision.d.ts.map +0 -1
- package/lib/NumberFormat/digit-mapping.generated.d.ts.map +0 -1
- package/lib/NumberFormat/format_to_parts.d.ts.map +0 -1
- package/lib/PartitionPattern.d.ts.map +0 -1
- package/lib/SupportedLocales.d.ts.map +0 -1
- package/lib/data.d.ts.map +0 -1
- package/lib/index.d.ts.map +0 -1
- package/lib/regex.generated.d.ts.map +0 -1
- package/lib/types/core.d.ts.map +0 -1
- package/lib/types/date-time.d.ts.map +0 -1
- package/lib/types/displaynames.d.ts.map +0 -1
- package/lib/types/list.d.ts.map +0 -1
- package/lib/types/number.d.ts.map +0 -1
- package/lib/types/plural-rules.d.ts.map +0 -1
- package/lib/types/relative-time.d.ts.map +0 -1
- package/lib/utils.d.ts.map +0 -1
- package/regex.generated.d.ts.map +0 -1
- package/types/core.d.ts.map +0 -1
- package/types/date-time.d.ts.map +0 -1
- package/types/displaynames.d.ts.map +0 -1
- package/types/list.d.ts.map +0 -1
- package/types/number.d.ts.map +0 -1
- package/types/plural-rules.d.ts.map +0 -1
- package/types/relative-time.d.ts.map +0 -1
- package/utils.d.ts.map +0 -1
package/262.d.ts
CHANGED
|
@@ -71,7 +71,7 @@ export declare function InLeapYear(t: number): 0 | 1;
|
|
|
71
71
|
* https://tc39.es/ecma262/#sec-month-number
|
|
72
72
|
* @param t
|
|
73
73
|
*/
|
|
74
|
-
export declare function MonthFromTime(t: number): 0 | 1 |
|
|
74
|
+
export declare function MonthFromTime(t: number): 0 | 1 | 2 | 3 | 4 | 8 | 5 | 6 | 10 | 7 | 9 | 11;
|
|
75
75
|
export declare function DateFromTime(t: number): number;
|
|
76
76
|
export declare function HourFromTime(t: number): number;
|
|
77
77
|
export declare function MinFromTime(t: number): number;
|
|
@@ -89,4 +89,3 @@ export declare function OrdinaryHasInstance(C: Object, O: any, internalSlots?: {
|
|
|
89
89
|
boundTargetFunction: any;
|
|
90
90
|
}): boolean;
|
|
91
91
|
export declare function msFromTime(t: number): number;
|
|
92
|
-
//# sourceMappingURL=262.d.ts.map
|
package/DefaultNumberOption.d.ts
CHANGED
package/GetNumberOption.d.ts
CHANGED
package/GetOption.d.ts
CHANGED
package/GetOptionsObject.d.ts
CHANGED
|
@@ -8,4 +8,3 @@
|
|
|
8
8
|
* @param fallback
|
|
9
9
|
*/
|
|
10
10
|
export declare function GetStringOrBooleanOption<T extends object, K extends keyof T>(opts: T, prop: K, values: T[K][] | undefined, trueValue: T[K] | boolean, falsyValue: T[K] | boolean, fallback: T[K] | boolean): T[K] | boolean;
|
|
11
|
-
//# sourceMappingURL=GetStringOrBooleanOption.d.ts.map
|
|
@@ -11,4 +11,3 @@ export declare const SIMPLE_UNITS: string[];
|
|
|
11
11
|
* https://tc39.es/ecma402/#sec-issanctionedsimpleunitidentifier
|
|
12
12
|
*/
|
|
13
13
|
export declare function IsSanctionedSimpleUnitIdentifier(unitIdentifier: string): boolean;
|
|
14
|
-
//# sourceMappingURL=IsSanctionedSimpleUnitIdentifier.d.ts.map
|
package/IsValidTimeZoneName.d.ts
CHANGED
|
@@ -9,4 +9,3 @@ import { NumberFormatInternal } from '../types/number';
|
|
|
9
9
|
export declare function ComputeExponent(numberFormat: Intl.NumberFormat, x: number, { getInternalSlots, }: {
|
|
10
10
|
getInternalSlots(nf: Intl.NumberFormat): NumberFormatInternal;
|
|
11
11
|
}): [number, number];
|
|
12
|
-
//# sourceMappingURL=ComputeExponent.d.ts.map
|
|
@@ -7,4 +7,3 @@ import { NumberFormatInternal } from '../types/number';
|
|
|
7
7
|
export declare function ComputeExponentForMagnitude(numberFormat: Intl.NumberFormat, magnitude: number, { getInternalSlots, }: {
|
|
8
8
|
getInternalSlots(nf: Intl.NumberFormat): NumberFormatInternal;
|
|
9
9
|
}): number;
|
|
10
|
-
//# sourceMappingURL=ComputeExponentForMagnitude.d.ts.map
|
|
@@ -5,4 +5,3 @@ import { NumberFormatInternal, NumberFormatPart } from '../types/number';
|
|
|
5
5
|
export declare function FormatApproximately(numberFormat: Intl.NumberFormat, result: NumberFormatPart[], { getInternalSlots, }: {
|
|
6
6
|
getInternalSlots(nf: Intl.NumberFormat): NumberFormatInternal;
|
|
7
7
|
}): NumberFormatPart[];
|
|
8
|
-
//# sourceMappingURL=FormatApproximately.d.ts.map
|
|
@@ -5,4 +5,3 @@ import { NumberFormatInternal } from '../types/number';
|
|
|
5
5
|
export declare function FormatNumericRange(numberFormat: Intl.NumberFormat, x: number, y: number, { getInternalSlots, }: {
|
|
6
6
|
getInternalSlots(nf: Intl.NumberFormat): NumberFormatInternal;
|
|
7
7
|
}): string;
|
|
8
|
-
//# sourceMappingURL=FormatNumericRange.d.ts.map
|
|
@@ -5,4 +5,3 @@ import { NumberFormatInternal, NumberRangeToParts } from '../types/number';
|
|
|
5
5
|
export declare function FormatNumericRangeToParts(numberFormat: Intl.NumberFormat, x: number, y: number, { getInternalSlots, }: {
|
|
6
6
|
getInternalSlots(nf: Intl.NumberFormat): NumberFormatInternal;
|
|
7
7
|
}): NumberRangeToParts[];
|
|
8
|
-
//# sourceMappingURL=FormatNumericRangeToParts.d.ts.map
|
|
@@ -2,4 +2,3 @@ import { NumberFormatInternal, NumberFormatPart } from '../types/number';
|
|
|
2
2
|
export declare function FormatNumericToParts(nf: Intl.NumberFormat, x: number, implDetails: {
|
|
3
3
|
getInternalSlots(nf: Intl.NumberFormat): NumberFormatInternal;
|
|
4
4
|
}): NumberFormatPart[];
|
|
5
|
-
//# sourceMappingURL=FormatNumericToParts.d.ts.map
|
|
@@ -5,4 +5,3 @@ import { NumberFormatInternal } from '../types/number';
|
|
|
5
5
|
export declare function PartitionNumberPattern(numberFormat: Intl.NumberFormat, x: number, { getInternalSlots, }: {
|
|
6
6
|
getInternalSlots(nf: Intl.NumberFormat): NumberFormatInternal;
|
|
7
7
|
}): import("../types/number").NumberFormatPart[];
|
|
8
|
-
//# sourceMappingURL=PartitionNumberPattern.d.ts.map
|
|
@@ -5,4 +5,3 @@ import { NumberFormatInternal, NumberFormatPart } from '../types/number';
|
|
|
5
5
|
export declare function PartitionNumberRangePattern(numberFormat: Intl.NumberFormat, x: number, y: number, { getInternalSlots, }: {
|
|
6
6
|
getInternalSlots(nf: Intl.NumberFormat): NumberFormatInternal;
|
|
7
7
|
}): NumberFormatPart[];
|
|
8
|
-
//# sourceMappingURL=PartitionNumberRangePattern.d.ts.map
|
|
@@ -3,4 +3,3 @@ import { NumberFormatDigitOptions, NumberFormatNotation, NumberFormatDigitIntern
|
|
|
3
3
|
* https://tc39.es/ecma402/#sec-setnfdigitoptions
|
|
4
4
|
*/
|
|
5
5
|
export declare function SetNumberFormatDigitOptions(internalSlots: NumberFormatDigitInternalSlots, opts: NumberFormatDigitOptions, mnfdDefault: number, mxfdDefault: number, notation: NumberFormatNotation): void;
|
|
6
|
-
//# sourceMappingURL=SetNumberFormatDigitOptions.d.ts.map
|
|
@@ -5,4 +5,3 @@ import { NumberFormatInternal, NumberFormatOptions } from '../types/number';
|
|
|
5
5
|
export declare function SetNumberFormatUnitOptions(nf: Intl.NumberFormat, options: NumberFormatOptions | undefined, { getInternalSlots, }: {
|
|
6
6
|
getInternalSlots(nf: Intl.NumberFormat): NumberFormatInternal;
|
|
7
7
|
}): void;
|
|
8
|
-
//# sourceMappingURL=SetNumberFormatUnitOptions.d.ts.map
|
package/PartitionPattern.d.ts
CHANGED
package/SupportedLocales.d.ts
CHANGED
package/data.d.ts
CHANGED
package/index.d.ts
CHANGED
package/lib/262.d.ts
CHANGED
|
@@ -71,7 +71,7 @@ export declare function InLeapYear(t: number): 0 | 1;
|
|
|
71
71
|
* https://tc39.es/ecma262/#sec-month-number
|
|
72
72
|
* @param t
|
|
73
73
|
*/
|
|
74
|
-
export declare function MonthFromTime(t: number): 0 | 1 |
|
|
74
|
+
export declare function MonthFromTime(t: number): 0 | 1 | 2 | 3 | 4 | 8 | 5 | 6 | 10 | 7 | 9 | 11;
|
|
75
75
|
export declare function DateFromTime(t: number): number;
|
|
76
76
|
export declare function HourFromTime(t: number): number;
|
|
77
77
|
export declare function MinFromTime(t: number): number;
|
|
@@ -89,4 +89,3 @@ export declare function OrdinaryHasInstance(C: Object, O: any, internalSlots?: {
|
|
|
89
89
|
boundTargetFunction: any;
|
|
90
90
|
}): boolean;
|
|
91
91
|
export declare function msFromTime(t: number): number;
|
|
92
|
-
//# sourceMappingURL=262.d.ts.map
|
package/lib/GetNumberOption.d.ts
CHANGED
package/lib/GetOption.d.ts
CHANGED
|
@@ -8,4 +8,3 @@
|
|
|
8
8
|
* @param fallback
|
|
9
9
|
*/
|
|
10
10
|
export declare function GetStringOrBooleanOption<T extends object, K extends keyof T>(opts: T, prop: K, values: T[K][] | undefined, trueValue: T[K] | boolean, falsyValue: T[K] | boolean, fallback: T[K] | boolean): T[K] | boolean;
|
|
11
|
-
//# sourceMappingURL=GetStringOrBooleanOption.d.ts.map
|
|
@@ -11,4 +11,3 @@ export declare const SIMPLE_UNITS: string[];
|
|
|
11
11
|
* https://tc39.es/ecma402/#sec-issanctionedsimpleunitidentifier
|
|
12
12
|
*/
|
|
13
13
|
export declare function IsSanctionedSimpleUnitIdentifier(unitIdentifier: string): boolean;
|
|
14
|
-
//# sourceMappingURL=IsSanctionedSimpleUnitIdentifier.d.ts.map
|
|
@@ -9,4 +9,3 @@ import { NumberFormatInternal } from '../types/number';
|
|
|
9
9
|
export declare function ComputeExponent(numberFormat: Intl.NumberFormat, x: number, { getInternalSlots, }: {
|
|
10
10
|
getInternalSlots(nf: Intl.NumberFormat): NumberFormatInternal;
|
|
11
11
|
}): [number, number];
|
|
12
|
-
//# sourceMappingURL=ComputeExponent.d.ts.map
|
|
@@ -7,4 +7,3 @@ import { NumberFormatInternal } from '../types/number';
|
|
|
7
7
|
export declare function ComputeExponentForMagnitude(numberFormat: Intl.NumberFormat, magnitude: number, { getInternalSlots, }: {
|
|
8
8
|
getInternalSlots(nf: Intl.NumberFormat): NumberFormatInternal;
|
|
9
9
|
}): number;
|
|
10
|
-
//# sourceMappingURL=ComputeExponentForMagnitude.d.ts.map
|
|
@@ -5,4 +5,3 @@ import { NumberFormatInternal, NumberFormatPart } from '../types/number';
|
|
|
5
5
|
export declare function FormatApproximately(numberFormat: Intl.NumberFormat, result: NumberFormatPart[], { getInternalSlots, }: {
|
|
6
6
|
getInternalSlots(nf: Intl.NumberFormat): NumberFormatInternal;
|
|
7
7
|
}): NumberFormatPart[];
|
|
8
|
-
//# sourceMappingURL=FormatApproximately.d.ts.map
|
|
@@ -5,4 +5,3 @@ import { NumberFormatInternal } from '../types/number';
|
|
|
5
5
|
export declare function FormatNumericRange(numberFormat: Intl.NumberFormat, x: number, y: number, { getInternalSlots, }: {
|
|
6
6
|
getInternalSlots(nf: Intl.NumberFormat): NumberFormatInternal;
|
|
7
7
|
}): string;
|
|
8
|
-
//# sourceMappingURL=FormatNumericRange.d.ts.map
|
|
@@ -5,4 +5,3 @@ import { NumberFormatInternal, NumberRangeToParts } from '../types/number';
|
|
|
5
5
|
export declare function FormatNumericRangeToParts(numberFormat: Intl.NumberFormat, x: number, y: number, { getInternalSlots, }: {
|
|
6
6
|
getInternalSlots(nf: Intl.NumberFormat): NumberFormatInternal;
|
|
7
7
|
}): NumberRangeToParts[];
|
|
8
|
-
//# sourceMappingURL=FormatNumericRangeToParts.d.ts.map
|
|
@@ -2,4 +2,3 @@ import { NumberFormatInternal, NumberFormatPart } from '../types/number';
|
|
|
2
2
|
export declare function FormatNumericToParts(nf: Intl.NumberFormat, x: number, implDetails: {
|
|
3
3
|
getInternalSlots(nf: Intl.NumberFormat): NumberFormatInternal;
|
|
4
4
|
}): NumberFormatPart[];
|
|
5
|
-
//# sourceMappingURL=FormatNumericToParts.d.ts.map
|
|
@@ -5,4 +5,3 @@ import { NumberFormatInternal } from '../types/number';
|
|
|
5
5
|
export declare function PartitionNumberPattern(numberFormat: Intl.NumberFormat, x: number, { getInternalSlots, }: {
|
|
6
6
|
getInternalSlots(nf: Intl.NumberFormat): NumberFormatInternal;
|
|
7
7
|
}): import("../types/number").NumberFormatPart[];
|
|
8
|
-
//# sourceMappingURL=PartitionNumberPattern.d.ts.map
|
|
@@ -5,4 +5,3 @@ import { NumberFormatInternal, NumberFormatPart } from '../types/number';
|
|
|
5
5
|
export declare function PartitionNumberRangePattern(numberFormat: Intl.NumberFormat, x: number, y: number, { getInternalSlots, }: {
|
|
6
6
|
getInternalSlots(nf: Intl.NumberFormat): NumberFormatInternal;
|
|
7
7
|
}): NumberFormatPart[];
|
|
8
|
-
//# sourceMappingURL=PartitionNumberRangePattern.d.ts.map
|
|
@@ -3,4 +3,3 @@ import { NumberFormatDigitOptions, NumberFormatNotation, NumberFormatDigitIntern
|
|
|
3
3
|
* https://tc39.es/ecma402/#sec-setnfdigitoptions
|
|
4
4
|
*/
|
|
5
5
|
export declare function SetNumberFormatDigitOptions(internalSlots: NumberFormatDigitInternalSlots, opts: NumberFormatDigitOptions, mnfdDefault: number, mxfdDefault: number, notation: NumberFormatNotation): void;
|
|
6
|
-
//# sourceMappingURL=SetNumberFormatDigitOptions.d.ts.map
|
|
@@ -5,4 +5,3 @@ import { NumberFormatInternal, NumberFormatOptions } from '../types/number';
|
|
|
5
5
|
export declare function SetNumberFormatUnitOptions(nf: Intl.NumberFormat, options: NumberFormatOptions | undefined, { getInternalSlots, }: {
|
|
6
6
|
getInternalSlots(nf: Intl.NumberFormat): NumberFormatInternal;
|
|
7
7
|
}): void;
|
|
8
|
-
//# sourceMappingURL=SetNumberFormatUnitOptions.d.ts.map
|
package/lib/data.d.ts
CHANGED
package/lib/index.d.ts
CHANGED
package/lib/regex.generated.d.ts
CHANGED
package/lib/types/core.d.ts
CHANGED
package/lib/types/date-time.d.ts
CHANGED
package/lib/types/list.d.ts
CHANGED
package/lib/types/number.d.ts
CHANGED
package/lib/utils.d.ts
CHANGED
|
@@ -21,4 +21,3 @@ export declare function defineProperty<T extends object>(target: T, name: string
|
|
|
21
21
|
} & ThisType<any>): void;
|
|
22
22
|
export declare const UNICODE_EXTENSION_SEQUENCE_REGEX: RegExp;
|
|
23
23
|
export declare function invariant(condition: boolean, message: string, Err?: any): asserts condition;
|
|
24
|
-
//# sourceMappingURL=utils.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formatjs/ecma402-abstract",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.17.0",
|
|
4
4
|
"description": "A collection of implementation for ECMAScript abstract operations",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"intl",
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"format"
|
|
15
15
|
],
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"
|
|
18
|
-
"
|
|
17
|
+
"tslib": "^2.4.0",
|
|
18
|
+
"@formatjs/intl-localematcher": "0.4.0"
|
|
19
19
|
},
|
|
20
20
|
"author": "Long Ho <holevietlong@gmail.com",
|
|
21
21
|
"bugs": {
|
package/regex.generated.d.ts
CHANGED
package/types/core.d.ts
CHANGED
package/types/date-time.d.ts
CHANGED
package/types/displaynames.d.ts
CHANGED
package/types/list.d.ts
CHANGED
package/types/number.d.ts
CHANGED
package/types/plural-rules.d.ts
CHANGED
package/types/relative-time.d.ts
CHANGED