UNPKG

896 BTypeScriptView Raw
1import ts from "typescript";
2import type { Options } from "../options";
3declare const _default: {
4 reset: (options?: Options) => void;
5 compile: (args_0: ts.SourceFile) => string;
6 setChecker(typeChecker: ts.TypeChecker): void;
7 getTransformers(options?: Options): ((ctx: ts.TransformationContext) => ts.Transformer<any>)[];
8 compileTest: (testPath: string, target: string) => void;
9 compileDefinitionString: (string: string, options?: Options) => string;
10 compileDefinitionFile: (definitionPath: string, options?: Options, mapSourceCode?: (source: string | undefined, fileName: string) => string | undefined) => string;
11 compileDefinitionFiles: (definitionPaths: string[], options?: Options, mapSourceCode?: (source: string | undefined, fileName: string) => string | undefined) => Array<[string, string]>;
12};
13/**
14 * Compiles typescript files
15 */
16export default _default;