erasabilize
v0.1.6
Published
Rewrite TypeScript to erasable syntax for `node` compat.
Readme
erasabilize
Before:
export class Foo {
constructor(public bar: string) {}
}After:
export class Foo {
public bar: string; // Moved automatically for erasable syntax.
constructor(bar: string) {
this.bar = bar;
}
}(Note that you'll want to run the output through a formatter.)
Usage
npx -- erasabilize file1.ts file2.ts