UNPKG

@neo-one/smart-contract-compiler-esnext-esm

Version:

NEO•ONE TypeScript smart contract compiler.

11 lines (9 loc) 315 B
import { tsUtils } from '@neo-one/ts-utils-esnext-esm'; export function getFixedDecimals(type) { const aliasTypes = tsUtils.type_.getAliasTypeArgumentsArray(type); if (aliasTypes.length === 1) { return aliasTypes[0].value; } return undefined; } //# sourceMappingURL=getFixedDecimals.js.map