UNPKG

@neo-one/smart-contract-compiler

Version:

NEO•ONE TypeScript smart contract compiler.

17 lines (16 loc) 599 B
import ts from 'typescript'; import { ScriptBuilder } from '../../sb'; import { VisitOptions } from '../../types'; import { Helper } from '../Helper'; export interface IfHelperOptions { readonly condition: () => void; readonly whenTrue?: () => void; readonly whenFalse?: (() => void) | undefined; } export declare class IfHelper extends Helper { private readonly condition; private readonly whenTrue; private readonly whenFalse; constructor({ condition, whenTrue, whenFalse }: IfHelperOptions); emit(sb: ScriptBuilder, node: ts.Node, _options: VisitOptions): void; }