Changelog
3.5.2
Bugfixes:
const enum
. They are now declared as regular enums instead.Changelog
3.5.1
Bugfixes:
isThenableType
allows Node
instead of Expression
as parameterisBlockScopeBoundary
and isScopeBoundary
consider WithStatement
as scope boundaryChangelog
3.5.0
Features:
isBigIntLiteral
isLiteralType
recognises BigIntgetPropertyName
adds special handling for BigIntChangelog
3.4.0
Features:
commentText
to get the actual text content of a comment excluding the characters needed to start and end the commentChangelog
3.3.0
Features:
isCompilerOptionEnabled
: recognizes strictBindCallApply
getTokenAtPosition
: optionally includes JSDoc during lookupBugfixes:
isCompilerOptionEnabled
: correctly implements logic for allowSyntheticDefaultImports
findImportLikeNodes
: correctly finds imports in namespacesfindImportLikeNodes
/ findImports
: finds import types in JSDoc of JS filesChangelog
3.2.0
Features:
findImportLikeNodes
that works similar to findImports
but returns the import statement or expression instead of the module specifier and doesn't filter non-string module specifiersChangelog
3.1.0
Features:
isKeywordKind
and isValidJsxIdentifier
Changelog
3.0.0
:warning: Breaking Changes:
typescript@<2.8.0
getIdentifierText
, isJsxFramgment
, ImportOptions
isModifierFlagSet
, findImports
and getControlFlowEnd
'tsutils/util/util'
, import directly from 'tsutils/util/control-flow'
or 'tsutils/util'
isFunctionScopeBoundary
and isBlockScopeBoundary
now return a enum member of ScopeBoundary
instead of a booleanisFunctionScopeBoundary
no longer returns a truthy value for InterfaceDeclaration
, TypeAliasDeclaration
Features:
isTypeScopeBoundary
returning ScopeBoundary.Type
or ScopeBoundary.ConditionalType
ScopeBoundarySelector
whose members can be used to determine if a declaration belongs to a given ScopeBoundary
by using bitwise ANDBugfixes:
collectVariableUsage
now correctly handles infer T
nested inside function signatures or mapped typesisCompilerOptionEnabled
correctly handles skipDefaultLibCHeck
and suppressImplicitAnyIndexErrors