UNPKG

recast

Version:

JavaScript syntax tree transformer, nondestructive pretty-printer, and automatic source map generator

16 lines (15 loc) • 381 B
import { Options } from "./options"; export interface PrintResultType { code: string; map?: any; toString(): string; } interface PrinterType { print(ast: any): PrintResultType; printGenerically(ast: any): PrintResultType; } interface PrinterConstructor { new (config?: Options): PrinterType; } declare const Printer: PrinterConstructor; export { Printer };