@aiot-toolkit/generator
Version:
Generate source code and sourcemap from the AST
15 lines (14 loc) • 373 B
TypeScript
import { MapData } from '@aiot-toolkit/shared-utils';
import { SourceFile } from 'ts-morph';
declare class TypescriptGenerator {
generate(params: {
sourceFilePath: string;
targetFilePath: string;
ast: SourceFile;
mapList: MapData[];
}): {
code: string;
sourcemap: string;
};
}
export default TypescriptGenerator;