UNPKG

@neo-one/smart-contract-compiler

Version:

NEO•ONE TypeScript smart contract compiler.

15 lines (13 loc) 469 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getFixedDecimals = void 0; const ts_utils_1 = require("@neo-one/ts-utils"); function getFixedDecimals(type) { const aliasTypes = ts_utils_1.tsUtils.type_.getAliasTypeArgumentsArray(type); if (aliasTypes.length === 1) { return aliasTypes[0].value; } return undefined; } exports.getFixedDecimals = getFixedDecimals; //# sourceMappingURL=getFixedDecimals.js.map