A tool that strips TypeScript back to JavaScript.
DeTypeScript takes a TypeScript codebase and shreds the types out of it, moving the useful annotations into JSDoc comments and leaving behind plain, runnable JavaScript. It is the zero-build philosophy as a migration path: keep the type information, drop the transpiler.
// before - strip.ts
export function add(a: number, b: number): number {
return a + b;
}
// after - strip.js
/**
* @param {number} a
* @param {number} b
* @returns {number}
*/
export function add(a, b) {
return a + b;
}