ts-morph
28.0.0 · 12 Apr 2026MIT46.3M / weekRepositoryHomepagenpmAtom feed
In short
3 breaking4 new
- Breaking
TypePredicateNode#getTypeNode() now possible returns undefined.
- Breaking
Recommended to use the new
Project#addSourceFileAtPath(path)methods instead of the ones likeProject#addExistingSourceFile(path). The old way will be deprecated in Version 6. - Breaking
TypeScript 3.7.x support only.
Release note
The section about ts-morph of a note shared by several packages.
Features
Soft rename addExistingSourceFile-like methods to addSourceFileAtPath-like.
Support TypeScript 3.7.
TS 3.7 - Add TypeChecker#getTypeArguments and use that in Type#getTypeArguments.
Update implementation for #733.
Breaking changes
- Breaking
TypePredicateNode#getTypeNode() now possible returns undefined.
- Breaking
Recommended to use the new
Project#addSourceFileAtPath(path)methods instead of the ones likeProject#addExistingSourceFile(path). The old way will be deprecated in Version 6. - Breaking
TypeScript 3.7.x support only.
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.