Packages

ts-morph

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

Your version

2.1.0

29 Apr 2019Where it was published

2.3.0 is the newest release of 2.x.

In short

6 new1 faster2 fixed

Release note

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

Bug Fixes

  • TypeParameterDeclaration#getStructure() should trim leading indentation on contraint and default.

  • Mixin type guards should maintain the passed in type.

Features

  • Update #getStatement() to work with type guards.

  • Add forEachStructureChild

  • Add StructureTypeGuards.

  • Wrap ConditionalTypeNode.

  • Wrap InferTypeNode.

  • Wrap ThisTypeNode.

Performance Improvements

  • Upgrade to code-block-writer 8.0.0.

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.