export function toNumber(value) {
    return typeof value === "number" && Number.isFinite(value) ? value : null;
}
export function sumNullable(current, next) {
    if (typeof next !== "number")
        return current;
    if (typeof current !== "number")
        return next;
    return current + next;
}
//# sourceMappingURL=shared.js.map