@neo-one/smart-contract-compiler
Version:
NEO•ONE TypeScript smart contract compiler.
13 lines (12 loc) • 429 B
TypeScript
import { RawSourceMap } from 'source-map';
import ts from 'typescript';
import { Context } from '../Context';
export interface TranspileOptions {
readonly sourceFile: ts.SourceFile;
readonly context: Context;
}
export interface TranspileResult {
readonly text: string;
readonly sourceMap: RawSourceMap;
}
export declare const transpile: ({ sourceFile, context }: TranspileOptions) => TranspileResult | undefined;