Files
NapCatQQ/.pnpm-store/v3/files/4b/fb76e4048980d28f181ca1e31b7384a6a574ddbe631cb1d534fc304dbcbee8927192bc00a74d9920987fea6f34383441aeb0fe49e48a73ef42c86171bc6da8
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

20 lines
731 B
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FormatNumericRangeToParts = FormatNumericRangeToParts;
var PartitionNumberRangePattern_1 = require("./PartitionNumberRangePattern");
/**
* https://tc39.es/ecma402/#sec-formatnumericrangetoparts
*/
function FormatNumericRangeToParts(numberFormat, x, y, _a) {
var getInternalSlots = _a.getInternalSlots;
var parts = (0, PartitionNumberRangePattern_1.PartitionNumberRangePattern)(numberFormat, x, y, {
getInternalSlots: getInternalSlots,
});
return parts.map(function (part, index) { return ({
type: part.type,
value: part.value,
source: part.source,
result: index.toString(),
}); });
}