Releases: ajafff/tsutils
Releases · ajafff/tsutils
v3.14.0
Features:
- added
getInstanceTypeOfClassLikeDeclaration
andgetConstructorTypeOfClassLikeDeclaration
- added
AccessKind.Delete
togetAccessKind
:getAccessKind(node) & AccessKind.Modification
can now be used to restore the old behavior ofisReassignmentTarget(node)
v3.13.0
Features:
getAccessKind
determines whether an expression is read from, written to or both- optimized
getPropertyOfType
for unambiguous property names to partially work around microsoft/TypeScript#31565
Bugfixes:
isReassignmentTarget
no longer returnstrue
forDeleteExpression
as it doesn't assign a value to the operand
v3.12.0
Features:
getLateBoundPropertyNamesOfPropertyName
returns all statically analyzable names of a property, method, ...getSingleLateBoundPropertyNameOfPropertyName
returns the literal name of a property, method, ... if statically analyzable
Bugfixes:
- fixed circular import
v3.11.0
Features:
- typeguards:
isNumericOrStringLikeLiteral
,isTupleTypeReference
intersectionTypeParts
as counterpart tounionTypeParts
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 ofObject.defineProperty(o, 'p', {value, writable})
isReadonlyAssignmentDeclaration
determines whether anObject.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 ofSymbol.<name>
getPropertyNameOfWellKnownSymbol
returns the escaped name for a well known symbol literalunwrapParentheses
returns the first child expression that is not aParenthesizedExpression