You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To enable TypeScript support on Node.js, Marco implement types stripping. This approach is now supported by the TypeScript transpiler and is on its way to becoming stable on Node.js. That is why we must try to create one or more codemods that will enable adoption of this approach.
Todo
Use right file extension on import specifier @nodejs/correct-ts-specifiers(need to be updated to new codemod paradigm)
Activity
Renegade334 commentedon Nov 15, 2025
For context, a list of what TS currently considers non-strippable:
<T>x(as opposed tox as Twhich is strippable)constructor(public x) { ... }import x = ...andexport = ...AugustinMauroy commentedon Nov 16, 2025
import { type } from "package";also if a type is imported without thetypekeyword it's not workingJakobJingleheimer commentedon Nov 16, 2025
correct-ts-specifiershandles some of that (if it's a.d.tsfile). tslint handles the other cases.