UNPKG

@neo-one/smart-contract-compiler

Version:

NEO•ONE TypeScript smart contract compiler.

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