Changelog
3.14.0
Features:
getInstanceTypeOfClassLikeDeclaration
and getConstructorTypeOfClassLikeDeclaration
AccessKind.Delete
to getAccessKind
: getAccessKind(node) & AccessKind.Modification
can now be used to restore the old behavior of isReassignmentTarget(node)
Changelog
3.13.0
Features:
getAccessKind
determines whether an expression is read from, written to or bothgetPropertyOfType
for unambiguous property names to partially work around https://github.com/microsoft/TypeScript/issues/31565Bugfixes:
isReassignmentTarget
no longer returns true
for DeleteExpression
as it doesn't assign a value to the operandChangelog
3.12.0
Features:
getLateBoundPropertyNamesOfPropertyName
returns all statically analyzable names of a property, method, ...getSingleLateBoundPropertyNameOfPropertyName
returns the literal name of a property, method, ... if statically analyzableBugfixes:
Changelog
3.11.0
Features:
isNumericOrStringLikeLiteral
, isTupleTypeReference
intersectionTypeParts
as counterpart to unionTypeParts
someTypePart
to execute a callback for each union or intersection constituent until the callback returns truegetPropertyOfType
looks up a property by its escaped nameisPropertyReadonlyInType
determines whether a property in a given type cannot be written tosymbolHasReadonlyDeclaration
determines if a Symbol has any readonly or constant declarationisNumericPropertyName
determines whether a property name would match an index signatureisBindableObjectDefinePropertyCall
returns true for statically analyzable forms of Object.defineProperty(o, 'p', {value, writable})
isReadonlyAssignmentDeclaration
determines whether an Object.defineProperty
call is known to result in a readonly propertygetLateBoundPropertyNames
returns all known property names of an expressiongetPropertyNameFromType
extracts the property name of literal typesisWellKnownSymbolLiterally
to recognize expressions in the form of Symbol.<name>
getPropertyNameOfWellKnownSymbol
returns the escaped name for a well known symbol literalunwrapParentheses
returns the first child expression that is not a ParenthesizedExpression
Changelog
3.10.0
Features:
isCompilerOptionEnabled
: incremental
is implicitly enabled by composite
Bugfixes:
collectVariableUsage
/getUsageDomain
: no longer treat as const
as type usageChangelog
3.9.1
Bugfixes:
canHaveJsdoc
parseJsdocOfNode
Changelog
3.8.0
Features:
isConstAssertion
and isInConstContext
Changelog
3.7.0
Features:
isBlockScopedDeclarationStatement
isInSingleStatementContext