Files
memecoin-botV2/.pnpm-store/v10/files/68/f0f664a9de7f1579274a33b02e9fb463b2e93ca9ae6b38288824c1d9438b1dc8dc04f7be9d244b7be5ac8a49562ccec1b2958fca1d436e49f5de6eede77ac7

17 lines
533 B
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getValueOfLiteralType = void 0;
const valueIsPseudoBigInt = (value) => {
return typeof value === 'object';
};
const pseudoBigIntToBigInt = (value) => {
return BigInt((value.negative ? '-' : '') + value.base10Value);
};
const getValueOfLiteralType = (type) => {
if (valueIsPseudoBigInt(type.value)) {
return pseudoBigIntToBigInt(type.value);
}
return type.value;
};
exports.getValueOfLiteralType = getValueOfLiteralType;