ts-budgie
Version:
Converts TypeScript code to Budgie.
39 lines (38 loc) • 1.23 kB
TypeScript
import * as ts from "typescript";
import { Transformer } from "./transforms";
export { BudgieLine } from "./output/budgieLine";
export { IOutput, Transformation } from "./output/transformation";
export { IRange } from "./output/range";
export { ITransformer, TransformationService } from "./service";
export * from "./transforms";
/**
* Options to run ts-budgie.
*/
export interface ITsBudgieOptions {
/**
* Base or root directory to ignore from the beginning of file paths, such as "src/", if not "".
*/
baseDirectory?: string;
/**
* TypeScript compiler options to run with (not recommended).
*/
compilerOptions?: ts.CompilerOptions;
/**
* Namespace before path names, such as "Budgie", if not "".
*/
outputNamespace?: string;
/**
* Whether to visit comments in addition to content nodes.
*/
skipComments?: boolean;
/**
* Source files to load into the program.
*/
sourceFiles: ts.SourceFile[];
}
/**
* Creates a TypeScript-to-Budgie code transformer.
*
* @returns A TypeScript-to-Budgie code transformer.
*/
export declare const createTransformer: (options: ITsBudgieOptions) => Transformer;