@neo-one/smart-contract-compiler
Version:
NEO•ONE TypeScript smart contract compiler.
9 lines (8 loc) • 499 B
TypeScript
import ts from 'typescript';
export interface CompilerHost {
readonly getAllTypescriptFilesInDir: (dir: string) => Promise<ReadonlyArray<string>>;
readonly createSnippetFile: (fileName?: string) => string;
readonly getSmartContractPath: (file: string) => string;
readonly getSmartContractLibPath: (file: string) => string;
readonly createLanguageServiceHost: (rootNames: ReadonlyArray<string>, options: ts.CompilerOptions, withTestHarness?: boolean) => ts.LanguageServiceHost;
}