UNPKG

scrypt-ts-transpiler

Version:

```bash npm i npx scryptlib download npm t ```

33 lines (32 loc) 697 B
import ts from "typescript"; /** * @ignore */ export interface Range { fileName: string; start: ts.LineAndCharacter; end: ts.LineAndCharacter; } /** * @ignore * Errors that may occur when the transpiler translates sCrypt contracts. */ export declare class TranspileError { message: string; srcRange: Range; constructor(message: string, srcRange: Range); } export declare class UnknownError extends Error { srcRange: Range; constructor(message: string, srcRange: Range); } /** * @ignore */ export type TransformationResult = { success: boolean; errors: TranspileError[]; scryptfile: string; sourceMapFile: string; ctxMethods: string[]; };