TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Node.prototype.forgetDescendants()
no longer returns self by @dsherret in https://github.com/dsherret/ts-morph/pull/1515
Type.prototype.isAssignableTo
by @dsherret in https://github.com/dsherret/ts-morph/pull/1517
TypeChecker.prototype.resolveName
by @dsherret in https://github.com/dsherret/ts-morph/pull/1518
People may have been working around these bugs in the past:
.quote()
- should include newline on newline (https://github.com/dsherret/code-block-writer/pull/47).quote()
- escape characters were not always being escaped (https://github.com/dsherret/code-block-writer/pull/46)Full Changelog: https://github.com/dsherret/ts-morph/compare/21.0.1...22.0.0
I forgot to run a code generation script to update some code for the 21.0.0 release and only realized after. This release fixes that and also reduces the chance of that happening in the future.
For 21.0.0 release notes, see https://github.com/dsherret/ts-morph/releases/tag/21.0.0
Full Changelog: https://github.com/dsherret/ts-morph/compare/21.0.0...21.0.1
ProjectOptions::defaultCompilerOptions
by @wojpawlik in https://github.com/dsherret/ts-morph/pull/1460
getShorthandAssignmentValueSymbol
to TypeChecker
. add convenience method for getting the value symbol on ShorthandPropertyAssignment
. by @kronodeus in https://github.com/dsherret/ts-morph/pull/1456
@ts-morph/common
file system methods return undefined instead of throwing when not exists (for perf).Full Changelog: https://github.com/dsherret/ts-morph/compare/20.0.0...21.0.0
Full Changelog: https://github.com/dsherret/ts-morph/compare/19.0.0...20.0.0
Type
by @odiak in https://github.com/dsherret/ts-morph/pull/1408
Type
by @giuseppelt in https://github.com/dsherret/ts-morph/pull/1398
.tranform
to work with Nodes from another parsed source file by @ivanhofer in https://github.com/dsherret/ts-morph/pull/1417
Full Changelog: https://github.com/dsherret/ts-morph/compare/18.0.0...19.0.0
BREAKING CHANGE: Upgraded to TypeScript 5.0.2
Full Changelog: https://github.com/dsherret/ts-morph/compare/17.0.1...18.0.0
esModuleInterop: true
had no effect) #1358OrThrow
methods (#1327) (05916d3) - Thanks @jantimon!Type#isNever()
(ac0db0d), closes #1303
Type#isReadonlyArray()
and Type#isArray()
also includes readonly arrays (f1d5c43), closes #1306 #1305
ts.createX
functions seem almost completely deprecated in TS 4.8, so make sure to update your code to use the traversal.context.createX
functions insteadType#isArray()
returns true for readonly arrays