Packages

ts-morph

28.0.0 · 12 Apr 2026MIT46.3M / weekRepositoryHomepagenpmAtom feed

Your version

4.2.0

5 Oct 2019Where it was published

4.3.3 is the newest release of 4.x.

In short

6 new1 faster2 fixed

Release note

The section about ts-morph of a note shared by several packages.

Bug Fixes

  • Fix abstract keyword accidentally being printed before scope.

  • Fix message for Type#getDefaultOrThrow()

Features

  • ExpressionNode - Add getExpressionIfKind methods.

  • Add useTrailingCommas manipulation setting option.

  • Add getParentIf and getParentIfOrThrow (9e037b6) (@HoldYourWaffle)

  • Update forgetNodesCreatedInBlock to allow returning a value.

  • Wrap TypePredicateNode.

  • Add Node#forEachDescendantAsArray

Performance Improvements

  • insertOverloads should only print.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.