UNPKG

@neo-one/smart-contract-compiler

Version:

NEO•ONE TypeScript smart contract compiler.

18 lines (17 loc) 787 B
import ts from 'typescript'; import { Context } from '../../../Context'; import { Types } from '../../constants'; import { IsHelper } from './IsHelper'; import { UnwrapHelper } from './UnwrapHelper'; import { WrapHelper } from './WrapHelper'; export declare class UnwrapErrorHelper extends UnwrapHelper { } export declare class WrapErrorHelper extends WrapHelper { protected readonly type = Types.Error; } export declare class IsErrorHelper extends IsHelper { protected readonly type = Types.Error; } export declare const hasError: (context: Context, node: ts.Node, type: ts.Type) => boolean; export declare const isOnlyError: (context: Context, node: ts.Node, type: ts.Type) => boolean; export declare const isError: (context: Context, node: ts.Node, type: ts.Type) => boolean;