UNPKG

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

Version:

NEO•ONE TypeScript smart contract compiler.

7 lines (5 loc) 421 B
import { tsUtils } from '@neo-one/ts-utils-esnext-esm'; export const hasSymbol = (context, node, type) => tsUtils.type_.hasType(type, (tpe) => isSymbol(context, node, tpe)); export const isOnlySymbol = (context, node, type) => tsUtils.type_.isOnlyType(type, (tpe) => isSymbol(context, node, tpe)); export const isSymbol = (_context, _node, type) => tsUtils.type_.isSymbolish(type); //# sourceMappingURL=typeTests.js.map