@servicenow/sdk - v4.4.1
    Preparing search index...

    Hierarchy

    Index

    Constructors

    Properties

    isAnyKeyword isArrayBindingPattern isArrayLiteralExpression isArrowFunction isAsExpression isAwaitExpression isBigIntLiteral isBinaryExpression isBindingElement isBlock isBooleanKeyword isBreakStatement isCallExpression isCaseBlock isCaseClause isCatchClause isClassDeclaration isClassExpression isClassStaticBlockDeclaration isCommaListExpression isComputedPropertyName isConditionalExpression isContinueStatement isDebuggerStatement isDecorator isDefaultClause isDeleteExpression isDoStatement isElementAccessExpression isEmptyStatement isEnumDeclaration isEnumMember isExportAssignment isExportDeclaration isExportSpecifier isExpressionStatement isExpressionWithTypeArguments isExternalModuleReference isForInStatement isForOfStatement isForStatement isFunctionDeclaration isFunctionExpression isHeritageClause isIdentifier isIfStatement isImportAttribute isImportAttributes isImportClause isImportDeclaration isImportEqualsDeclaration isImportSpecifier isInferKeyword isInterfaceDeclaration isJSDoc isJSDocAllType isJSDocAugmentsTag isJSDocAuthorTag isJSDocCallbackTag isJSDocClassTag isJSDocDeprecatedTag isJSDocEnumTag isJSDocFunctionType isJSDocImplementsTag isJSDocLink isJSDocLinkCode isJSDocLinkPlain isJSDocMemberName isJSDocNamepathType isJSDocNameReference isJSDocNonNullableType isJSDocNullableType isJSDocOptionalType isJSDocOverloadTag isJSDocOverrideTag isJSDocParameterTag isJSDocPrivateTag isJSDocPropertyTag isJSDocProtectedTag isJSDocPublicTag isJSDocReadonlyTag isJSDocReturnTag isJSDocSatisfiesTag isJSDocSeeTag isJSDocSignature isJSDocTemplateTag isJSDocText isJSDocThisTag isJSDocThrowsTag isJSDocTypedefTag isJSDocTypeExpression isJSDocTypeLiteral isJSDocTypeTag isJSDocUnknownType isJSDocVariadicType isJsxAttribute isJsxClosingElement isJsxClosingFragment isJsxElement isJsxExpression isJsxFragment isJsxNamespacedName isJsxOpeningElement isJsxOpeningFragment isJsxSelfClosingElement isJsxSpreadAttribute isJsxText isLabeledStatement isMetaProperty isMethodDeclaration isMethodSignature isModuleBlock isModuleDeclaration isNamedExports isNamedImports isNamedTupleMember isNamespaceExport isNamespaceImport isNeverKeyword isNewExpression isNonNullExpression isNoSubstitutionTemplateLiteral isNotEmittedStatement isNumberKeyword isNumericLiteral isObjectBindingPattern isObjectKeyword isObjectLiteralExpression isOmittedExpression isParenthesizedExpression isPartiallyEmittedExpression isPostfixUnaryExpression isPrefixUnaryExpression isPrivateIdentifier isPropertyAccessExpression isPropertyAssignment isPropertyDeclaration isPropertySignature isQualifiedName isRegularExpressionLiteral isReturnStatement isSatisfiesExpression isSemicolonToken isShorthandPropertyAssignment isSourceFile isSpreadAssignment isSpreadElement isStringKeyword isStringLiteral isSwitchStatement isSymbolKeyword isSyntaxList isTaggedTemplateExpression isTemplateExpression isTemplateHead isTemplateMiddle isTemplateSpan isTemplateTail isThrowStatement isTryStatement isTypeAliasDeclaration isTypeOfExpression isUndefinedKeyword isVariableDeclaration isVariableDeclarationList isVariableStatement isVoidExpression isWhileStatement isWithStatement isYieldExpression

    Accessors

    Methods

    addClass addClasses addEnum addEnums addFunction addFunctions addInterface addInterfaces addModule addModules addStatements addTypeAlias addTypeAliases addVariableStatement addVariableStatements appendWhitespace asKind asKindOrThrow containsRange forEachChild forEachChildAsArray forEachDescendant forEachDescendantAsArray forget forgetDescendants formatText getAncestors getChildAtIndex getChildAtIndexIfKind getChildAtIndexIfKindOrThrow getChildAtPos getChildCount getChildIndentationLevel getChildIndentationText getChildIndex getChildren getChildrenOfKind getChildSyntaxList getChildSyntaxListOrThrow getClass getClasses getClassOrThrow getCombinedModifierFlags getDescendantAtPos getDescendantAtStartWithWidth getDescendants getDescendantsOfKind getDescendantStatements getEnd getEndLineNumber getEnum getEnumOrThrow getEnums getFirstAncestor getFirstAncestorByKind getFirstAncestorByKindOrThrow getFirstAncestorOrThrow getFirstChild getFirstChildByKind getFirstChildByKindOrThrow getFirstChildIfKind getFirstChildIfKindOrThrow getFirstChildOrThrow getFirstDescendant getFirstDescendantByKind getFirstDescendantByKindOrThrow getFirstDescendantOrThrow getFlags getFullStart getFullText getFullWidth getFunction getFunctionOrThrow getFunctions getIndentationLevel getIndentationText getInterface getInterfaceOrThrow getInterfaces getKind getKindName getLastChild getLastChildByKind getLastChildByKindOrThrow getLastChildIfKind getLastChildIfKindOrThrow getLastChildOrThrow getLastToken getLeadingCommentRanges getLeadingTriviaWidth getLocal getLocalOrThrow getLocals getModule getModuleOrThrow getModules getNextSibling getNextSiblingIfKind getNextSiblingIfKindOrThrow getNextSiblingOrThrow getNextSiblings getNodeProperty getNonWhitespaceStart getParent getParentIf getParentIfKind getParentIfKindOrThrow getParentIfOrThrow getParentOrThrow getParentSyntaxList getParentSyntaxListOrThrow getParentWhile getParentWhileKind getParentWhileKindOrThrow getParentWhileOrThrow getPos getPreviousSibling getPreviousSiblingIfKind getPreviousSiblingIfKindOrThrow getPreviousSiblingOrThrow getPreviousSiblings getProject getSourceFile getStart getStartLineNumber getStartLinePos getStatement getStatementByKind getStatementByKindOrThrow getStatementOrThrow getStatements getStatementsWithComments getSymbol getSymbolOrThrow getSymbolsInScope getText getTrailingCommentRanges getTrailingTriviaEnd getTrailingTriviaWidth getType getTypeAlias getTypeAliases getTypeAliasOrThrow getVariableDeclaration getVariableDeclarationOrThrow getVariableDeclarations getVariableStatement getVariableStatementOrThrow getVariableStatements getWidth insertClass insertClasses insertEnum insertEnums insertFunction insertFunctions insertInterface insertInterfaces insertModule insertModules insertStatements insertText insertTypeAlias insertTypeAliases insertVariableStatement insertVariableStatements isFirstNodeOnLine isInStringAtPos isInSyntaxList isKind prependWhitespace print remove removeStatement removeStatements removeText replaceText replaceWithText transform wasForgotten hasBody hasExpression hasName hasStructure is isAbstractable isAmbientable isArgumented isArrayTypeNode isAsyncable isAwaitable isBindingNamed isBodied isBodyable isCallSignatureDeclaration isChildOrderable isClassLikeDeclarationBase isCommentClassElement isCommentEnumMember isCommentNode isCommentObjectLiteralElement isCommentStatement isCommentTypeElement isConditionalTypeNode isConstructorDeclaration isConstructorTypeNode isConstructSignatureDeclaration isDecoratable isDotDotDotTokenable isExclamationTokenable isExportable isExportGetable isExpression isExpressionable isExpressioned isExtendsClauseable isFalseLiteral isFunctionLikeDeclaration isFunctionTypeNode isGeneratorable isGetAccessorDeclaration isHeritageClauseable isImplementsClauseable isImportAttributeNamed isImportExpression isImportTypeNode isIndexedAccessTypeNode isIndexSignatureDeclaration isInferTypeNode isInitializerExpressionable isInitializerExpressionGetable isIntersectionTypeNode isIterationStatement isJSDocable isJSDocPropertyLikeTag isJSDocTag isJSDocType isJSDocTypeExpressionableTag isJSDocTypeParameteredTag isJSDocUnknownTag isJsxAttributed isJsxTagNamed isLeftHandSideExpression isLeftHandSideExpressioned isLiteralExpression isLiteralLike isLiteralTypeNode isMappedTypeNode isMemberExpression isModifierable isModuleChildable isModuled isModuleNamed isNameable isNamed isNode isNodeWithTypeArguments isNullLiteral isOverloadable isOverrideable isParameterDeclaration isParametered isParenthesizedTypeNode isPrimaryExpression isPropertyNamed isQuestionDotTokenable isQuestionTokenable isReadonlyable isReferenceFindable isRenameable isRestTypeNode isReturnTyped isScopeable isScoped isSetAccessorDeclaration isSignaturedDeclaration isStatement isStatemented isStaticable isSuperExpression isTemplateLiteralTypeNode isTextInsertable isThisExpression isThisTypeNode isTrueLiteral isTupleTypeNode isTypeArgumented isTypeAssertion isTyped isTypeElement isTypeElementMembered isTypeLiteral isTypeNode isTypeOperatorTypeNode isTypeParameterDeclaration isTypeParametered isTypePredicate isTypeQuery isTypeReference isUnaryExpression isUnaryExpressioned isUnionTypeNode isUnwrappable isUpdateExpression

    Constructors

    • Returns DefaultClause

    Properties

    isAnyKeyword: (
        node: Node<tsc.Node> | undefined,
    ) => node is Expression<tsc.Expression>

    Gets if the node is an AnyKeyword.

    isArrayBindingPattern: (
        node: Node<tsc.Node> | undefined,
    ) => node is ArrayBindingPattern

    Gets if the node is an ArrayBindingPattern.

    isArrayLiteralExpression: (
        node: Node<tsc.Node> | undefined,
    ) => node is ArrayLiteralExpression

    Gets if the node is an ArrayLiteralExpression.

    isArrowFunction: (node: Node<tsc.Node> | undefined) => node is ArrowFunction

    Gets if the node is an ArrowFunction.

    isAsExpression: (node: Node<tsc.Node> | undefined) => node is AsExpression

    Gets if the node is an AsExpression.

    isAwaitExpression: (node: Node<tsc.Node> | undefined) => node is AwaitExpression

    Gets if the node is an AwaitExpression.

    isBigIntLiteral: (node: Node<tsc.Node> | undefined) => node is BigIntLiteral

    Gets if the node is a BigIntLiteral.

    isBinaryExpression: (
        node: Node<tsc.Node> | undefined,
    ) => node is BinaryExpression<tsc.BinaryExpression>

    Gets if the node is a BinaryExpression.

    isBindingElement: (node: Node<tsc.Node> | undefined) => node is BindingElement

    Gets if the node is a BindingElement.

    isBlock: (node: Node<tsc.Node> | undefined) => node is Block

    Gets if the node is a Block.

    isBooleanKeyword: (
        node: Node<tsc.Node> | undefined,
    ) => node is Expression<tsc.Expression>

    Gets if the node is a BooleanKeyword.

    isBreakStatement: (node: Node<tsc.Node> | undefined) => node is BreakStatement

    Gets if the node is a BreakStatement.

    isCallExpression: (
        node: Node<tsc.Node> | undefined,
    ) => node is CallExpression<tsc.CallExpression>

    Gets if the node is a CallExpression.

    isCaseBlock: (node: Node<tsc.Node> | undefined) => node is CaseBlock

    Gets if the node is a CaseBlock.

    isCaseClause: (node: Node<tsc.Node> | undefined) => node is CaseClause

    Gets if the node is a CaseClause.

    isCatchClause: (node: Node<tsc.Node> | undefined) => node is CatchClause

    Gets if the node is a CatchClause.

    isClassDeclaration: (
        node: Node<tsc.Node> | undefined,
    ) => node is ClassDeclaration

    Gets if the node is a ClassDeclaration.

    isClassExpression: (node: Node<tsc.Node> | undefined) => node is ClassExpression

    Gets if the node is a ClassExpression.

    isClassStaticBlockDeclaration: (
        node: Node<tsc.Node> | undefined,
    ) => node is ClassStaticBlockDeclaration

    Gets if the node is a ClassStaticBlockDeclaration.

    isCommaListExpression: (
        node: Node<tsc.Node> | undefined,
    ) => node is CommaListExpression

    Gets if the node is a CommaListExpression.

    isComputedPropertyName: (
        node: Node<tsc.Node> | undefined,
    ) => node is ComputedPropertyName

    Gets if the node is a ComputedPropertyName.

    isConditionalExpression: (
        node: Node<tsc.Node> | undefined,
    ) => node is ConditionalExpression

    Gets if the node is a ConditionalExpression.

    isContinueStatement: (
        node: Node<tsc.Node> | undefined,
    ) => node is ContinueStatement

    Gets if the node is a ContinueStatement.

    isDebuggerStatement: (
        node: Node<tsc.Node> | undefined,
    ) => node is DebuggerStatement

    Gets if the node is a DebuggerStatement.

    isDecorator: (node: Node<tsc.Node> | undefined) => node is Decorator

    Gets if the node is a Decorator.

    isDefaultClause: (node: Node<tsc.Node> | undefined) => node is DefaultClause

    Gets if the node is a DefaultClause.

    isDeleteExpression: (
        node: Node<tsc.Node> | undefined,
    ) => node is DeleteExpression

    Gets if the node is a DeleteExpression.

    isDoStatement: (node: Node<tsc.Node> | undefined) => node is DoStatement

    Gets if the node is a DoStatement.

    isElementAccessExpression: (
        node: Node<tsc.Node> | undefined,
    ) => node is ElementAccessExpression<tsc.ElementAccessExpression>

    Gets if the node is an ElementAccessExpression.

    isEmptyStatement: (node: Node<tsc.Node> | undefined) => node is EmptyStatement

    Gets if the node is an EmptyStatement.

    isEnumDeclaration: (node: Node<tsc.Node> | undefined) => node is EnumDeclaration

    Gets if the node is an EnumDeclaration.

    isEnumMember: (node: Node<tsc.Node> | undefined) => node is EnumMember

    Gets if the node is an EnumMember.

    isExportAssignment: (
        node: Node<tsc.Node> | undefined,
    ) => node is ExportAssignment

    Gets if the node is an ExportAssignment.

    isExportDeclaration: (
        node: Node<tsc.Node> | undefined,
    ) => node is ExportDeclaration

    Gets if the node is an ExportDeclaration.

    isExportSpecifier: (node: Node<tsc.Node> | undefined) => node is ExportSpecifier

    Gets if the node is an ExportSpecifier.

    isExpressionStatement: (
        node: Node<tsc.Node> | undefined,
    ) => node is ExpressionStatement

    Gets if the node is an ExpressionStatement.

    isExpressionWithTypeArguments: (
        node: Node<tsc.Node> | undefined,
    ) => node is ExpressionWithTypeArguments

    Gets if the node is an ExpressionWithTypeArguments.

    isExternalModuleReference: (
        node: Node<tsc.Node> | undefined,
    ) => node is ExternalModuleReference

    Gets if the node is an ExternalModuleReference.

    isForInStatement: (node: Node<tsc.Node> | undefined) => node is ForInStatement

    Gets if the node is a ForInStatement.

    isForOfStatement: (node: Node<tsc.Node> | undefined) => node is ForOfStatement

    Gets if the node is a ForOfStatement.

    isForStatement: (node: Node<tsc.Node> | undefined) => node is ForStatement

    Gets if the node is a ForStatement.

    isFunctionDeclaration: (
        node: Node<tsc.Node> | undefined,
    ) => node is FunctionDeclaration

    Gets if the node is a FunctionDeclaration.

    isFunctionExpression: (
        node: Node<tsc.Node> | undefined,
    ) => node is FunctionExpression

    Gets if the node is a FunctionExpression.

    isHeritageClause: (node: Node<tsc.Node> | undefined) => node is HeritageClause

    Gets if the node is a HeritageClause.

    isIdentifier: (node: Node<tsc.Node> | undefined) => node is Identifier

    Gets if the node is a Identifier.

    isIfStatement: (node: Node<tsc.Node> | undefined) => node is IfStatement

    Gets if the node is a IfStatement.

    isImportAttribute: (node: Node<tsc.Node> | undefined) => node is ImportAttribute

    Gets if the node is a ImportAttribute.

    isImportAttributes: (
        node: Node<tsc.Node> | undefined,
    ) => node is ImportAttributes

    Gets if the node is a ImportAttributes.

    isImportClause: (node: Node<tsc.Node> | undefined) => node is ImportClause

    Gets if the node is a ImportClause.

    isImportDeclaration: (
        node: Node<tsc.Node> | undefined,
    ) => node is ImportDeclaration

    Gets if the node is a ImportDeclaration.

    isImportEqualsDeclaration: (
        node: Node<tsc.Node> | undefined,
    ) => node is ImportEqualsDeclaration

    Gets if the node is a ImportEqualsDeclaration.

    isImportSpecifier: (node: Node<tsc.Node> | undefined) => node is ImportSpecifier

    Gets if the node is a ImportSpecifier.

    isInferKeyword: (
        node: Node<tsc.Node> | undefined,
    ) => node is Node<Token<InferKeyword>>

    Gets if the node is a InferKeyword.

    isInterfaceDeclaration: (
        node: Node<tsc.Node> | undefined,
    ) => node is InterfaceDeclaration

    Gets if the node is a InterfaceDeclaration.

    isJSDoc: (node: Node<tsc.Node> | undefined) => node is JSDoc

    Gets if the node is a JSDoc.

    isJSDocAllType: (node: Node<tsc.Node> | undefined) => node is JSDocAllType

    Gets if the node is a JSDocAllType.

    isJSDocAugmentsTag: (
        node: Node<tsc.Node> | undefined,
    ) => node is JSDocAugmentsTag

    Gets if the node is a JSDocAugmentsTag.

    isJSDocAuthorTag: (node: Node<tsc.Node> | undefined) => node is JSDocAuthorTag

    Gets if the node is a JSDocAuthorTag.

    isJSDocCallbackTag: (
        node: Node<tsc.Node> | undefined,
    ) => node is JSDocCallbackTag

    Gets if the node is a JSDocCallbackTag.

    isJSDocClassTag: (node: Node<tsc.Node> | undefined) => node is JSDocClassTag

    Gets if the node is a JSDocClassTag.

    isJSDocDeprecatedTag: (
        node: Node<tsc.Node> | undefined,
    ) => node is JSDocDeprecatedTag

    Gets if the node is a JSDocDeprecatedTag.

    isJSDocEnumTag: (node: Node<tsc.Node> | undefined) => node is JSDocEnumTag

    Gets if the node is a JSDocEnumTag.

    isJSDocFunctionType: (
        node: Node<tsc.Node> | undefined,
    ) => node is JSDocFunctionType

    Gets if the node is a JSDocFunctionType.

    isJSDocImplementsTag: (
        node: Node<tsc.Node> | undefined,
    ) => node is JSDocImplementsTag

    Gets if the node is a JSDocImplementsTag.

    isJSDocLink: (node: Node<tsc.Node> | undefined) => node is JSDocLink

    Gets if the node is a JSDocLink.

    isJSDocLinkCode: (node: Node<tsc.Node> | undefined) => node is JSDocLinkCode

    Gets if the node is a JSDocLinkCode.

    isJSDocLinkPlain: (node: Node<tsc.Node> | undefined) => node is JSDocLinkPlain

    Gets if the node is a JSDocLinkPlain.

    isJSDocMemberName: (node: Node<tsc.Node> | undefined) => node is JSDocMemberName

    Gets if the node is a JSDocMemberName.

    isJSDocNamepathType: (
        node: Node<tsc.Node> | undefined,
    ) => node is JSDocNamepathType

    Gets if the node is a JSDocNamepathType.

    isJSDocNameReference: (
        node: Node<tsc.Node> | undefined,
    ) => node is JSDocNameReference

    Gets if the node is a JSDocNameReference.

    isJSDocNonNullableType: (
        node: Node<tsc.Node> | undefined,
    ) => node is JSDocNonNullableType

    Gets if the node is a JSDocNonNullableType.

    isJSDocNullableType: (
        node: Node<tsc.Node> | undefined,
    ) => node is JSDocNullableType

    Gets if the node is a JSDocNullableType.

    isJSDocOptionalType: (
        node: Node<tsc.Node> | undefined,
    ) => node is JSDocOptionalType

    Gets if the node is a JSDocOptionalType.

    isJSDocOverloadTag: (
        node: Node<tsc.Node> | undefined,
    ) => node is JSDocOverloadTag

    Gets if the node is a JSDocOverloadTag.

    isJSDocOverrideTag: (
        node: Node<tsc.Node> | undefined,
    ) => node is JSDocOverrideTag

    Gets if the node is a JSDocOverrideTag.

    isJSDocParameterTag: (
        node: Node<tsc.Node> | undefined,
    ) => node is JSDocParameterTag

    Gets if the node is a JSDocParameterTag.

    isJSDocPrivateTag: (node: Node<tsc.Node> | undefined) => node is JSDocPrivateTag

    Gets if the node is a JSDocPrivateTag.

    isJSDocPropertyTag: (
        node: Node<tsc.Node> | undefined,
    ) => node is JSDocPropertyTag

    Gets if the node is a JSDocPropertyTag.

    isJSDocProtectedTag: (
        node: Node<tsc.Node> | undefined,
    ) => node is JSDocProtectedTag

    Gets if the node is a JSDocProtectedTag.

    isJSDocPublicTag: (node: Node<tsc.Node> | undefined) => node is JSDocPublicTag

    Gets if the node is a JSDocPublicTag.

    isJSDocReadonlyTag: (
        node: Node<tsc.Node> | undefined,
    ) => node is JSDocReadonlyTag

    Gets if the node is a JSDocReadonlyTag.

    isJSDocReturnTag: (node: Node<tsc.Node> | undefined) => node is JSDocReturnTag

    Gets if the node is a JSDocReturnTag.

    isJSDocSatisfiesTag: (
        node: Node<tsc.Node> | undefined,
    ) => node is JSDocSatisfiesTag

    Gets if the node is a JSDocSatisfiesTag.

    isJSDocSeeTag: (node: Node<tsc.Node> | undefined) => node is JSDocSeeTag

    Gets if the node is a JSDocSeeTag.

    isJSDocSignature: (node: Node<tsc.Node> | undefined) => node is JSDocSignature

    Gets if the node is a JSDocSignature.

    isJSDocTemplateTag: (
        node: Node<tsc.Node> | undefined,
    ) => node is JSDocTemplateTag

    Gets if the node is a JSDocTemplateTag.

    isJSDocText: (node: Node<tsc.Node> | undefined) => node is JSDocText

    Gets if the node is a JSDocText.

    isJSDocThisTag: (node: Node<tsc.Node> | undefined) => node is JSDocThisTag

    Gets if the node is a JSDocThisTag.

    isJSDocThrowsTag: (node: Node<tsc.Node> | undefined) => node is JSDocThrowsTag

    Gets if the node is a JSDocThrowsTag.

    isJSDocTypedefTag: (node: Node<tsc.Node> | undefined) => node is JSDocTypedefTag

    Gets if the node is a JSDocTypedefTag.

    isJSDocTypeExpression: (
        node: Node<tsc.Node> | undefined,
    ) => node is JSDocTypeExpression

    Gets if the node is a JSDocTypeExpression.

    isJSDocTypeLiteral: (
        node: Node<tsc.Node> | undefined,
    ) => node is JSDocTypeLiteral

    Gets if the node is a JSDocTypeLiteral.

    isJSDocTypeTag: (node: Node<tsc.Node> | undefined) => node is JSDocTypeTag

    Gets if the node is a JSDocTypeTag.

    isJSDocUnknownType: (
        node: Node<tsc.Node> | undefined,
    ) => node is JSDocUnknownType

    Gets if the node is a JSDocUnknownType.

    isJSDocVariadicType: (
        node: Node<tsc.Node> | undefined,
    ) => node is JSDocVariadicType

    Gets if the node is a JSDocVariadicType.

    isJsxAttribute: (node: Node<tsc.Node> | undefined) => node is JsxAttribute

    Gets if the node is a JsxAttribute.

    isJsxClosingElement: (
        node: Node<tsc.Node> | undefined,
    ) => node is JsxClosingElement

    Gets if the node is a JsxClosingElement.

    isJsxClosingFragment: (
        node: Node<tsc.Node> | undefined,
    ) => node is JsxClosingFragment

    Gets if the node is a JsxClosingFragment.

    isJsxElement: (node: Node<tsc.Node> | undefined) => node is JsxElement

    Gets if the node is a JsxElement.

    isJsxExpression: (node: Node<tsc.Node> | undefined) => node is JsxExpression

    Gets if the node is a JsxExpression.

    isJsxFragment: (node: Node<tsc.Node> | undefined) => node is JsxFragment

    Gets if the node is a JsxFragment.

    isJsxNamespacedName: (
        node: Node<tsc.Node> | undefined,
    ) => node is JsxNamespacedName

    Gets if the node is a JsxNamespacedName.

    isJsxOpeningElement: (
        node: Node<tsc.Node> | undefined,
    ) => node is JsxOpeningElement

    Gets if the node is a JsxOpeningElement.

    isJsxOpeningFragment: (
        node: Node<tsc.Node> | undefined,
    ) => node is JsxOpeningFragment

    Gets if the node is a JsxOpeningFragment.

    isJsxSelfClosingElement: (
        node: Node<tsc.Node> | undefined,
    ) => node is JsxSelfClosingElement

    Gets if the node is a JsxSelfClosingElement.

    isJsxSpreadAttribute: (
        node: Node<tsc.Node> | undefined,
    ) => node is JsxSpreadAttribute

    Gets if the node is a JsxSpreadAttribute.

    isJsxText: (node: Node<tsc.Node> | undefined) => node is JsxText

    Gets if the node is a JsxText.

    isLabeledStatement: (
        node: Node<tsc.Node> | undefined,
    ) => node is LabeledStatement

    Gets if the node is a LabeledStatement.

    isMetaProperty: (node: Node<tsc.Node> | undefined) => node is MetaProperty

    Gets if the node is a MetaProperty.

    isMethodDeclaration: (
        node: Node<tsc.Node> | undefined,
    ) => node is MethodDeclaration

    Gets if the node is a MethodDeclaration.

    isMethodSignature: (node: Node<tsc.Node> | undefined) => node is MethodSignature

    Gets if the node is a MethodSignature.

    isModuleBlock: (node: Node<tsc.Node> | undefined) => node is ModuleBlock

    Gets if the node is a ModuleBlock.

    isModuleDeclaration: (
        node: Node<tsc.Node> | undefined,
    ) => node is ModuleDeclaration

    Gets if the node is a ModuleDeclaration.

    isNamedExports: (node: Node<tsc.Node> | undefined) => node is NamedExports

    Gets if the node is a NamedExports.

    isNamedImports: (node: Node<tsc.Node> | undefined) => node is NamedImports

    Gets if the node is a NamedImports.

    isNamedTupleMember: (
        node: Node<tsc.Node> | undefined,
    ) => node is NamedTupleMember

    Gets if the node is a NamedTupleMember.

    isNamespaceExport: (node: Node<tsc.Node> | undefined) => node is NamespaceExport

    Gets if the node is a NamespaceExport.

    isNamespaceImport: (node: Node<tsc.Node> | undefined) => node is NamespaceImport

    Gets if the node is a NamespaceImport.

    isNeverKeyword: (
        node: Node<tsc.Node> | undefined,
    ) => node is Node<Token<NeverKeyword>>

    Gets if the node is a NeverKeyword.

    isNewExpression: (node: Node<tsc.Node> | undefined) => node is NewExpression

    Gets if the node is a NewExpression.

    isNonNullExpression: (
        node: Node<tsc.Node> | undefined,
    ) => node is NonNullExpression

    Gets if the node is a NonNullExpression.

    isNoSubstitutionTemplateLiteral: (
        node: Node<tsc.Node> | undefined,
    ) => node is NoSubstitutionTemplateLiteral

    Gets if the node is a NoSubstitutionTemplateLiteral.

    isNotEmittedStatement: (
        node: Node<tsc.Node> | undefined,
    ) => node is NotEmittedStatement

    Gets if the node is a NotEmittedStatement.

    isNumberKeyword: (
        node: Node<tsc.Node> | undefined,
    ) => node is Expression<tsc.Expression>

    Gets if the node is a NumberKeyword.

    isNumericLiteral: (node: Node<tsc.Node> | undefined) => node is NumericLiteral

    Gets if the node is a NumericLiteral.

    isObjectBindingPattern: (
        node: Node<tsc.Node> | undefined,
    ) => node is ObjectBindingPattern

    Gets if the node is a ObjectBindingPattern.

    isObjectKeyword: (
        node: Node<tsc.Node> | undefined,
    ) => node is Expression<tsc.Expression>

    Gets if the node is a ObjectKeyword.

    isObjectLiteralExpression: (
        node: Node<tsc.Node> | undefined,
    ) => node is ObjectLiteralExpression

    Gets if the node is a ObjectLiteralExpression.

    isOmittedExpression: (
        node: Node<tsc.Node> | undefined,
    ) => node is OmittedExpression

    Gets if the node is a OmittedExpression.

    isParenthesizedExpression: (
        node: Node<tsc.Node> | undefined,
    ) => node is ParenthesizedExpression

    Gets if the node is a ParenthesizedExpression.

    isPartiallyEmittedExpression: (
        node: Node<tsc.Node> | undefined,
    ) => node is PartiallyEmittedExpression

    Gets if the node is a PartiallyEmittedExpression.

    isPostfixUnaryExpression: (
        node: Node<tsc.Node> | undefined,
    ) => node is PostfixUnaryExpression

    Gets if the node is a PostfixUnaryExpression.

    isPrefixUnaryExpression: (
        node: Node<tsc.Node> | undefined,
    ) => node is PrefixUnaryExpression

    Gets if the node is a PrefixUnaryExpression.

    isPrivateIdentifier: (
        node: Node<tsc.Node> | undefined,
    ) => node is PrivateIdentifier

    Gets if the node is a PrivateIdentifier.

    isPropertyAccessExpression: (
        node: Node<tsc.Node> | undefined,
    ) => node is PropertyAccessExpression<tsc.PropertyAccessExpression>

    Gets if the node is a PropertyAccessExpression.

    isPropertyAssignment: (
        node: Node<tsc.Node> | undefined,
    ) => node is PropertyAssignment

    Gets if the node is a PropertyAssignment.

    isPropertyDeclaration: (
        node: Node<tsc.Node> | undefined,
    ) => node is PropertyDeclaration

    Gets if the node is a PropertyDeclaration.

    isPropertySignature: (
        node: Node<tsc.Node> | undefined,
    ) => node is PropertySignature

    Gets if the node is a PropertySignature.

    isQualifiedName: (node: Node<tsc.Node> | undefined) => node is QualifiedName

    Gets if the node is a QualifiedName.

    isRegularExpressionLiteral: (
        node: Node<tsc.Node> | undefined,
    ) => node is RegularExpressionLiteral

    Gets if the node is a RegularExpressionLiteral.

    isReturnStatement: (node: Node<tsc.Node> | undefined) => node is ReturnStatement

    Gets if the node is a ReturnStatement.

    isSatisfiesExpression: (
        node: Node<tsc.Node> | undefined,
    ) => node is SatisfiesExpression

    Gets if the node is a SatisfiesExpression.

    isSemicolonToken: (
        node: Node<tsc.Node> | undefined,
    ) => node is Node<Token<SemicolonToken>>

    Gets if the node is a SemicolonToken.

    isShorthandPropertyAssignment: (
        node: Node<tsc.Node> | undefined,
    ) => node is ShorthandPropertyAssignment

    Gets if the node is a ShorthandPropertyAssignment.

    isSourceFile: (node: Node<tsc.Node> | undefined) => node is SourceFile

    Gets if the node is a SourceFile.

    isSpreadAssignment: (
        node: Node<tsc.Node> | undefined,
    ) => node is SpreadAssignment

    Gets if the node is a SpreadAssignment.

    isSpreadElement: (node: Node<tsc.Node> | undefined) => node is SpreadElement

    Gets if the node is a SpreadElement.

    isStringKeyword: (
        node: Node<tsc.Node> | undefined,
    ) => node is Expression<tsc.Expression>

    Gets if the node is a StringKeyword.

    isStringLiteral: (node: Node<tsc.Node> | undefined) => node is StringLiteral

    Gets if the node is a StringLiteral.

    isSwitchStatement: (node: Node<tsc.Node> | undefined) => node is SwitchStatement

    Gets if the node is a SwitchStatement.

    isSymbolKeyword: (
        node: Node<tsc.Node> | undefined,
    ) => node is Expression<tsc.Expression>

    Gets if the node is a SymbolKeyword.

    isSyntaxList: (node: Node<tsc.Node> | undefined) => node is SyntaxList

    Gets if the node is a SyntaxList.

    isTaggedTemplateExpression: (
        node: Node<tsc.Node> | undefined,
    ) => node is TaggedTemplateExpression

    Gets if the node is a TaggedTemplateExpression.

    isTemplateExpression: (
        node: Node<tsc.Node> | undefined,
    ) => node is TemplateExpression

    Gets if the node is a TemplateExpression.

    isTemplateHead: (node: Node<tsc.Node> | undefined) => node is TemplateHead

    Gets if the node is a TemplateHead.

    isTemplateMiddle: (node: Node<tsc.Node> | undefined) => node is TemplateMiddle

    Gets if the node is a TemplateMiddle.

    isTemplateSpan: (node: Node<tsc.Node> | undefined) => node is TemplateSpan

    Gets if the node is a TemplateSpan.

    isTemplateTail: (node: Node<tsc.Node> | undefined) => node is TemplateTail

    Gets if the node is a TemplateTail.

    isThrowStatement: (node: Node<tsc.Node> | undefined) => node is ThrowStatement

    Gets if the node is a ThrowStatement.

    isTryStatement: (node: Node<tsc.Node> | undefined) => node is TryStatement

    Gets if the node is a TryStatement.

    isTypeAliasDeclaration: (
        node: Node<tsc.Node> | undefined,
    ) => node is TypeAliasDeclaration

    Gets if the node is a TypeAliasDeclaration.

    isTypeOfExpression: (
        node: Node<tsc.Node> | undefined,
    ) => node is TypeOfExpression

    Gets if the node is a TypeOfExpression.

    isUndefinedKeyword: (
        node: Node<tsc.Node> | undefined,
    ) => node is Expression<tsc.Expression>

    Gets if the node is a UndefinedKeyword.

    isVariableDeclaration: (
        node: Node<tsc.Node> | undefined,
    ) => node is VariableDeclaration

    Gets if the node is a VariableDeclaration.

    isVariableDeclarationList: (
        node: Node<tsc.Node> | undefined,
    ) => node is VariableDeclarationList

    Gets if the node is a VariableDeclarationList.

    isVariableStatement: (
        node: Node<tsc.Node> | undefined,
    ) => node is VariableStatement

    Gets if the node is a VariableStatement.

    isVoidExpression: (node: Node<tsc.Node> | undefined) => node is VoidExpression

    Gets if the node is a VoidExpression.

    isWhileStatement: (node: Node<tsc.Node> | undefined) => node is WhileStatement

    Gets if the node is a WhileStatement.

    isWithStatement: (node: Node<tsc.Node> | undefined) => node is WithStatement

    Gets if the node is a WithStatement.

    isYieldExpression: (node: Node<tsc.Node> | undefined) => node is YieldExpression

    Gets if the node is a YieldExpression.

    Accessors

    • get compilerNode(): NodeType

      Gets the underlying compiler node.

      Returns NodeType

    Methods

    • Appends the specified whitespace to current node.

      Parameters

      • textOrWriterFunction: string | WriterFunction

        Text or writer function.

      Returns void

    • Gets the node as the specified kind if it is equal to that kind, otherwise returns undefined.

      Type Parameters

      Parameters

      Returns KindToNodeMappings[TKind] | undefined

    • Gets the node as the specified kind if it is equal to that kind, otherwise throws.

      Type Parameters

      Parameters

      • kind: TKind

        Syntax kind.

      • Optionalmessage: string | (() => string)

      Returns KindToNodeMappings[TKind]

    • If the node contains the provided range (inclusive).

      Parameters

      • pos: number

        Start position.

      • end: number

        End position.

      Returns boolean

    • Invokes the cbNode callback for each child and the cbNodeArray for every array of nodes stored in properties of the node. If cbNodeArray is not defined, then it will pass every element of the array to cbNode.

      Type Parameters

      • T

      Parameters

      • cbNode: (node: Node) => T | undefined

        Callback invoked for each child.

      • OptionalcbNodeArray: (nodes: Node<tsc.Node>[]) => T | undefined

        Callback invoked for each array of nodes.

      Returns T | undefined

      The first truthy value returned by a callback.

    • Gets the child nodes passed to the delegate of node.forEachChild(child => {}) as an array.

      Returns Node<tsc.Node>[]

    • Invokes the cbNode callback for each descendant and the cbNodeArray for every array of nodes stored in properties of the node and descendant nodes. If cbNodeArray is not defined, then it will pass every element of the array to cbNode.

      Type Parameters

      • T

      Parameters

      Returns T | undefined

      The first truthy value returned by a callback.

      There exists a traversal object on the second parameter that allows various control of iteration.

    • Gets the descendant nodes passed to the delegate of node.forEachDescendant(descendant => {}) as an array.

      Returns Node<tsc.Node>[]

    • Releases the node and all its descendants from the underlying node cache and ast.

      This is useful if you want to improve the performance of manipulation by not tracking this node anymore.

      Returns void

    • Forgets the descendants of this node.

      Returns void

    • Formats the node's text using the internal TypeScript formatting API.

      Parameters

      Returns void

    • Goes up the tree getting all the parents in ascending order.

      Returns Node<tsc.Node>[]

    • Gets the child at the specified index.

      Parameters

      • index: number

        Index of the child.

      Returns Node

    • Gets the child at the specified index if it's the specified kind or returns undefined.

      Type Parameters

      Parameters

      • index: number

        Child index to get.

      • kind: TKind

        Expected kind.

      Returns KindToNodeMappings[TKind] | undefined

    • Gets the child at the specified index if it's the specified kind or throws an exception.

      Type Parameters

      Parameters

      • index: number

        Child index to get.

      • kind: TKind

        Expected kind.

      • Optionalmessage: string | (() => string)

      Returns KindToNodeMappings[TKind]

    • Gets the child at the provided text position, or undefined if not found.

      Parameters

      • pos: number

        Text position to search for.

      Returns Node<tsc.Node> | undefined

    • Gets the number of children the node has.

      Returns number

    • Gets the child indentation level of the current node.

      Returns number

    • Gets the next indentation level text.

      Parameters

      • Optionaloffset: number

        Optional number of levels of indentation to add or remove.

      Returns string

    • Gets the child index of this node relative to the parent.

      Returns number

    • Gets all the children of the node.

      Returns Node<tsc.Node>[]

    • Gets the child syntax list if it exists.

      Returns SyntaxList | undefined

    • Gets the child syntax list or throws if it doesn't exist.

      Parameters

      • Optionalmessage: string | (() => string)

      Returns SyntaxList

    • Gets a class.

      Parameters

      • name: string

        Name of the class.

      Returns ClassDeclaration | undefined

    • Gets a class.

      Parameters

      • findFunction: (declaration: ClassDeclaration) => boolean

        Function to use to find the class.

      Returns ClassDeclaration | undefined

    • Gets the direct class declaration children.

      Returns ClassDeclaration[]

    • Gets a class or throws if it doesn't exist.

      Parameters

      • name: string

        Name of the class.

      Returns ClassDeclaration

    • Gets a class or throws if it doesn't exist.

      Parameters

      • findFunction: (declaration: ClassDeclaration) => boolean

        Function to use to find the class.

      Returns ClassDeclaration

    • Gets the combined modifier flags.

      Returns ModifierFlags

    • Gets the most specific descendant at the provided text position, or undefined if not found.

      Parameters

      • pos: number

        Text position to search for.

      Returns Node<tsc.Node> | undefined

    • Gets the most specific descendant at the provided start text position with the specified width, or undefined if not found.

      Parameters

      • start: number

        Start text position to search for.

      • width: number

        Text length of the node to search for.

      Returns Node<tsc.Node> | undefined

    • Gets the node's descendants.

      Returns Node<tsc.Node>[]

    • Gets the node's descendant statements and any arrow function statement-like expressions (ex. returns the expression 5 in () => 5).

      Returns (Statement<tsc.Statement> | Expression<tsc.Expression>)[]

    • Gets the source file text position where the node ends.

      Returns number

      This does not include the following trivia (comments and whitespace).

    • Gets the line number of the end of the node.

      Returns number

    • Gets an enum.

      Parameters

      • name: string

        Name of the enum.

      Returns EnumDeclaration | undefined

    • Gets an enum.

      Parameters

      • findFunction: (declaration: EnumDeclaration) => boolean

        Function to use to find the enum.

      Returns EnumDeclaration | undefined

    • Gets an enum or throws if it doesn't exist.

      Parameters

      • name: string

        Name of the enum.

      Returns EnumDeclaration

    • Gets an enum or throws if it doesn't exist.

      Parameters

      • findFunction: (declaration: EnumDeclaration) => boolean

        Function to use to find the enum.

      Returns EnumDeclaration

    • Gets the direct enum declaration children.

      Returns EnumDeclaration[]

    • Gets the first ancestor that matches the provided condition or returns undefined if not found.

      Type Parameters

      Parameters

      • Optionalcondition: (node: Node) => node is T

        Condition to match.

      Returns T | undefined

    • Gets the first ancestor that matches the provided condition or returns undefined if not found.

      Parameters

      • Optionalcondition: (node: Node) => boolean

        Condition to match.

      Returns Node<tsc.Node> | undefined

    • Gets the first ancestor by syntax kind or throws if not found.

      Type Parameters

      Parameters

      • kind: TKind

        Syntax kind.

      • Optionalmessage: string | (() => string)

      Returns KindToNodeMappings[TKind]

    • Gets the first ancestor that matches the provided condition or throws if not found.

      Type Parameters

      Parameters

      • Optionalcondition: (node: Node) => node is T

        Condition to match.

      Returns T

    • Gets the first ancestor that matches the provided condition or throws if not found.

      Parameters

      • Optionalcondition: (node: Node) => boolean

        Condition to match.

      Returns Node

    • Gets the first child by a condition.

      Type Parameters

      Parameters

      • Optionalcondition: (node: Node) => node is T

        Condition.

      Returns T | undefined

    • Gets the first child by a condition.

      Parameters

      • Optionalcondition: (node: Node) => boolean

        Condition.

      Returns Node<tsc.Node> | undefined

    • Gets the first child by syntax kind or throws an error if not found.

      Type Parameters

      Parameters

      • kind: TKind

        Syntax kind.

      • Optionalmessage: string | (() => string)

      Returns KindToNodeMappings[TKind]

    • Gets the first child if it matches the specified syntax kind.

      Type Parameters

      Parameters

      Returns KindToNodeMappings[TKind] | undefined

    • Gets the first child if it matches the specified syntax kind or throws an error if not found.

      Type Parameters

      Parameters

      • kind: TKind

        Syntax kind.

      • Optionalmessage: string | (() => string)

      Returns KindToNodeMappings[TKind]

    • Gets the first child by a condition or throws.

      Type Parameters

      Parameters

      • Optionalcondition: (node: Node) => node is T

        Condition.

      • Optionalmessage: string | (() => string)

      Returns T

    • Gets the first child by a condition or throws.

      Parameters

      • Optionalcondition: (node: Node) => boolean

        Condition.

      • Optionalmessage: string | (() => string)

      Returns Node

    • Gets the first descendant by a condition.

      Type Parameters

      Parameters

      • Optionalcondition: (node: Node) => node is T

        Condition.

      Returns T | undefined

    • Gets the first descendant by a condition.

      Parameters

      • Optionalcondition: (node: Node) => boolean

        Condition.

      Returns Node<tsc.Node> | undefined

    • Gets the first descendant by syntax kind or throws.

      Type Parameters

      Parameters

      • kind: TKind

        Syntax kind.

      • Optionalmessage: string | (() => string)

      Returns KindToNodeMappings[TKind]

    • Gets the first descendant by a condition or throws.

      Type Parameters

      Parameters

      • Optionalcondition: (node: Node) => node is T

        Condition.

      • Optionalmessage: string | (() => string)

      Returns T

    • Gets the first descendant by a condition or throws.

      Parameters

      • Optionalcondition: (node: Node) => boolean

        Condition.

      • Optionalmessage: string | (() => string)

      Returns Node

    • Gets the node's flags.

      Returns tsc.NodeFlags

    • Gets the source file text position of the end of the last significant token or the start of the source file.

      Returns number

    • Gets the full text with leading trivia (comments and whitespace).

      Returns string

    • Gets the text length of the node with trivia.

      Returns number

    • Gets a function.

      Parameters

      • name: string

        Name of the function.

      Returns FunctionDeclaration | undefined

    • Gets a function.

      Parameters

      • findFunction: (declaration: FunctionDeclaration) => boolean

        Function to use to find the function.

      Returns FunctionDeclaration | undefined

    • Gets a function or throws if it doesn't exist.

      Parameters

      • name: string

        Name of the function.

      Returns FunctionDeclaration

    • Gets a function or throws if it doesn't exist.

      Parameters

      • findFunction: (declaration: FunctionDeclaration) => boolean

        Function to use to find the function.

      Returns FunctionDeclaration

    • Gets the direct function declaration children.

      Returns FunctionDeclaration[]

    • Gets the indentation level of the current node.

      Returns number

    • Gets the indentation text.

      Parameters

      • Optionaloffset: number

        Optional number of levels of indentation to add or remove.

      Returns string

    • Gets an interface.

      Parameters

      • name: string

        Name of the interface.

      Returns InterfaceDeclaration | undefined

    • Gets an interface.

      Parameters

      Returns InterfaceDeclaration | undefined

    • Gets an interface or throws if it doesn't exist.

      Parameters

      • name: string

        Name of the interface.

      Returns InterfaceDeclaration

    • Gets an interface or throws if it doesn't exist.

      Parameters

      Returns InterfaceDeclaration

    • Gets the direct interface declaration children.

      Returns InterfaceDeclaration[]

    • Gets the syntax kind.

      Returns tsc.SyntaxKind

    • Gets the syntax kind name.

      Returns string

    • Gets the last child by a condition.

      Type Parameters

      Parameters

      • Optionalcondition: (node: Node) => node is T

        Condition.

      Returns T | undefined

    • Gets the last child by a condition.

      Parameters

      • Optionalcondition: (node: Node) => boolean

        Condition.

      Returns Node<tsc.Node> | undefined

    • Gets the last child by syntax kind or throws an error if not found.

      Type Parameters

      Parameters

      • kind: TKind

        Syntax kind.

      • Optionalmessage: string | (() => string)

      Returns KindToNodeMappings[TKind]

    • Gets the last child if it matches the specified syntax kind.

      Type Parameters

      Parameters

      Returns KindToNodeMappings[TKind] | undefined

    • Gets the last child if it matches the specified syntax kind or throws an error if not found.

      Type Parameters

      Parameters

      • kind: TKind

        Syntax kind.

      • Optionalmessage: string | (() => string)

      Returns KindToNodeMappings[TKind]

    • Gets the last child by a condition or throws.

      Type Parameters

      Parameters

      • Optionalcondition: (node: Node) => node is T

        Condition.

      • Optionalmessage: string | (() => string)

      Returns T

    • Gets the last child by a condition or throws.

      Parameters

      • Optionalcondition: (node: Node) => boolean

        Condition.

      • Optionalmessage: string | (() => string)

      Returns Node

    • Gets the last token of this node. Usually this is a close brace.

      Returns Node

    • Gets the leading comment ranges of the current node.

      Returns CommentRange[]

    • Gets the node's leading trivia's text length.

      Returns number

    • Gets the specified local symbol by name or returns undefined if it doesn't exist.

      WARNING: The symbol table of locals is not exposed publicly by the compiler. Use this at your own risk knowing it may break.

      Parameters

      • name: string

        Name of the local symbol.

      Returns Symbol | undefined

    • Gets the specified local symbol by name or throws if it doesn't exist.

      WARNING: The symbol table of locals is not exposed publicly by the compiler. Use this at your own risk knowing it may break.

      Parameters

      • name: string

        Name of the local symbol.

      • Optionalmessage: string | (() => string)

      Returns Symbol

    • Gets the symbols within the current scope.

      WARNING: The symbol table of locals is not exposed publicly by the compiler. Use this at your own risk knowing it may break.

      Returns Symbol[]

    • Gets a module declaration child by name.

      Parameters

      • name: string

        Name of the namespace.

      Returns ModuleDeclaration | undefined

    • Gets a module declaration child by condition.

      Parameters

      • findFunction: (declaration: ModuleDeclaration) => boolean

        Function to use to find the namespace.

      Returns ModuleDeclaration | undefined

    • Gets a module declaration child by name or throws if it doesn't exist.

      Parameters

      • name: string

        Name of the namespace.

      Returns ModuleDeclaration

    • Gets a module declaration child by condition or throws if it doesn't exist.

      Parameters

      • findFunction: (declaration: ModuleDeclaration) => boolean

        Function to use to find the namespace.

      Returns ModuleDeclaration

    • Gets the module declaration children.

      Returns ModuleDeclaration[]

    • Gets the next sibling.

      Type Parameters

      Parameters

      • Optionalcondition: (node: Node) => node is T

        Optional condition for getting the next sibling.

      Returns T | undefined

    • Gets the next sibling.

      Parameters

      • Optionalcondition: (node: Node) => boolean

        Optional condition for getting the next sibling.

      Returns Node<tsc.Node> | undefined

    • Gets the next sibling if it matches the specified kind.

      Type Parameters

      Parameters

      • kind: TKind

        Kind to check.

      Returns KindToNodeMappings[TKind] | undefined

    • Gets the next sibiling if it matches the specified kind, or throws.

      Type Parameters

      Parameters

      • kind: TKind

        Kind to check.

      • Optionalmessage: string | (() => string)

      Returns KindToNodeMappings[TKind]

    • Gets the next sibling or throws.

      Type Parameters

      Parameters

      • Optionalcondition: (node: Node) => node is T

        Optional condition for getting the next sibling.

      • Optionalmessage: string | (() => string)

      Returns T

    • Gets the next sibling or throws.

      Parameters

      • Optionalcondition: (node: Node) => boolean

        Optional condition for getting the next sibling.

      • Optionalmessage: string | (() => string)

      Returns Node

    • Gets the next siblings.

      Note: Closest sibling is the zero index.

      Returns Node<tsc.Node>[]

    • Gets the first source file text position that is not whitespace taking into account comment nodes and a previous node's trailing trivia.

      Returns number

    • Returns CaseBlock

    • Gets the parent if it matches a certain condition.

      Type Parameters

      Parameters

      Returns T | undefined

    • Gets the parent if it matches a certain condition.

      Parameters

      Returns Node<tsc.Node> | undefined

    • Gets the parent if it's a certain syntax kind or throws.

      Type Parameters

      Parameters

      • kind: TKind
      • Optionalmessage: string | (() => string)

      Returns KindToNodeMappings[TKind]

    • Gets the parent if it matches a certain condition or throws.

      Type Parameters

      Parameters

      • condition: (parent: Node<tsc.Node> | undefined, node: Node) => parent is T
      • Optionalmessage: string | (() => string)

      Returns T

    • Gets the parent if it matches a certain condition or throws.

      Parameters

      • condition: (parent: Node<tsc.Node> | undefined, node: Node) => boolean
      • Optionalmessage: string | (() => string)

      Returns Node

    • Parameters

      • Optionalmessage: string | (() => string)

      Returns CaseBlock

    • Gets the parent if it's a syntax list.

      Returns SyntaxList | undefined

    • Gets the parent if it's a syntax list or throws an error otherwise.

      Parameters

      • Optionalmessage: string | (() => string)

      Returns SyntaxList

    • Goes up the parents (ancestors) of the node while a condition is true. Returns undefined if the initial parent doesn't match the condition.

      Type Parameters

      Parameters

      • condition: (parent: Node, child: Node) => parent is T

        Condition that tests the parent to see if the expression is true.

      Returns T | undefined

    • Goes up the parents (ancestors) of the node while a condition is true. Returns undefined if the initial parent doesn't match the condition.

      Parameters

      • condition: (parent: Node, child: Node) => boolean

        Condition that tests the parent to see if the expression is true.

      Returns Node<tsc.Node> | undefined

    • Goes up the parents (ancestors) of the node while the parent is the specified syntax kind. Returns undefined if the initial parent is not the specified syntax kind.

      Type Parameters

      Parameters

      • kind: TKind

        Syntax kind to check for.

      Returns KindToNodeMappings[TKind] | undefined

    • Goes up the parents (ancestors) of the node while the parent is the specified syntax kind. Throws if the initial parent is not the specified syntax kind.

      Type Parameters

      Parameters

      • kind: TKind

        Syntax kind to check for.

      • Optionalmessage: string | (() => string)

      Returns KindToNodeMappings[TKind]

    • Goes up the parents (ancestors) of the node while a condition is true. Throws if the initial parent doesn't match the condition.

      Type Parameters

      Parameters

      • condition: (parent: Node, node: Node) => parent is T

        Condition that tests the parent to see if the expression is true.

      • Optionalmessage: string | (() => string)

      Returns T

    • Goes up the parents (ancestors) of the node while a condition is true. Throws if the initial parent doesn't match the condition.

      Parameters

      • condition: (parent: Node, node: Node) => boolean

        Condition that tests the parent to see if the expression is true.

      • Optionalmessage: string | (() => string)

      Returns Node

    • Gets the source file text position where the node starts that includes the leading trivia (comments and whitespace).

      Returns number

    • Gets the previous sibling.

      Type Parameters

      Parameters

      • Optionalcondition: (node: Node) => node is T

        Optional condition for getting the previous sibling.

      Returns T | undefined

    • Gets the previous sibling.

      Parameters

      • Optionalcondition: (node: Node) => boolean

        Optional condition for getting the previous sibling.

      Returns Node<tsc.Node> | undefined

    • Gets the previous sibling if it matches the specified kind.

      Type Parameters

      Parameters

      • kind: TKind

        Kind to check.

      Returns KindToNodeMappings[TKind] | undefined

    • Gets the previous sibiling if it matches the specified kind, or throws.

      Type Parameters

      Parameters

      • kind: TKind

        Kind to check.

      • Optionalmessage: string | (() => string)

      Returns KindToNodeMappings[TKind]

    • Gets the previous sibling or throws.

      Type Parameters

      Parameters

      • Optionalcondition: (node: Node) => node is T

        Optional condition for getting the previous sibling.

      • Optionalmessage: string | (() => string)

      Returns T

    • Gets the previous sibling or throws.

      Parameters

      • Optionalcondition: (node: Node) => boolean

        Optional condition for getting the previous sibling.

      • Optionalmessage: string | (() => string)

      Returns Node

    • Gets the previous siblings.

      Note: Closest sibling is the zero index.

      Returns Node<tsc.Node>[]

    • Gets the project.

      Returns Project

    • Gets the source file.

      Returns SourceFile

    • Gets the source file text position where the node starts that does not include the leading trivia (comments and whitespace).

      Parameters

      • OptionalincludeJsDocComments: boolean

        Whether to include the JS doc comments.

      Returns number

    • Gets the line number at the start of the node.

      Parameters

      • OptionalincludeJsDocComments: boolean

        Whether to include the JS doc comments or not.

      Returns number

    • Gets the position of the start of the line that this node starts on.

      Parameters

      • OptionalincludeJsDocComments: boolean

        Whether to include the JS doc comments or not.

      Returns number

    • Gets the first statement that matches the provided condition or returns undefined if it doesn't exist.

      Type Parameters

      Parameters

      • findFunction: (statement: Statement) => statement is T

        Function to find the statement by.

      Returns T | undefined

    • Gets the first statement that matches the provided condition or returns undefined if it doesn't exist.

      Parameters

      • findFunction: (statement: Statement) => boolean

        Function to find the statement by.

      Returns Statement<tsc.Statement> | undefined

    • Gets the first statement that matches the provided condition or throws if it doesn't exist.

      Type Parameters

      Parameters

      • findFunction: (statement: Statement) => statement is T

        Function to find the statement by.

      Returns T

    • Gets the first statement that matches the provided condition or throws if it doesn't exist.

      Parameters

      • findFunction: (statement: Statement) => boolean

        Function to find the statement by.

      Returns Statement

    • Gets the node's statements.

      Returns Statement<tsc.Statement>[]

    • Gets the node's statements with comment statements.

      Returns Statement<tsc.Statement>[]

    • Gets the compiler symbol or undefined if it doesn't exist.

      Returns Symbol | undefined

    • Gets the symbol or throws an error if it doesn't exist.

      Parameters

      • Optionalmessage: string | (() => string)

      Returns Symbol

    • Gets the symbols in the scope of the node.

      Note: This will always return the local symbols. If you want the export symbol from a local symbol, then use the #getExportSymbol() method on the symbol.

      Parameters

      Returns Symbol[]

    • Gets the text without leading trivia (comments and whitespace).

      Parameters

      • OptionalincludeJsDocComments: boolean

        Whether to include the js doc comments when getting the text.

      Returns string

    • Gets the text without leading trivia (comments and whitespace).

      Parameters

      • options: { includeJsDocComments?: boolean; trimLeadingIndentation?: boolean }

        Options for getting the text.

      Returns string

    • Gets the trailing comment ranges of the current node.

      Returns CommentRange[]

    • Gets the text position of the next significant token or new line.

      Returns number

    • Gets the text length from the end of the current node to the next significant token or new line.

      Returns number

    • Gets the type of the node.

      Returns Type

    • Gets a type alias.

      Parameters

      • name: string

        Name of the type alias.

      Returns TypeAliasDeclaration | undefined

    • Gets a type alias.

      Parameters

      • findFunction: (declaration: TypeAliasDeclaration) => boolean

        Function to use to find the type alias.

      Returns TypeAliasDeclaration | undefined

    • Gets the direct type alias declaration children.

      Returns TypeAliasDeclaration[]

    • Gets a type alias or throws if it doesn't exist.

      Parameters

      • name: string

        Name of the type alias.

      Returns TypeAliasDeclaration

    • Gets a type alias or throws if it doesn't exist.

      Parameters

      • findFunction: (declaration: TypeAliasDeclaration) => boolean

        Function to use to find the type alias.

      Returns TypeAliasDeclaration

    • Gets a variable declaration.

      Parameters

      • name: string

        Name of the variable declaration.

      Returns VariableDeclaration | undefined

    • Gets a variable declaration.

      Parameters

      • findFunction: (declaration: VariableDeclaration) => boolean

        Function to use to find the variable declaration.

      Returns VariableDeclaration | undefined

    • Gets a variable declaration or throws if it doesn't exist.

      Parameters

      • name: string

        Name of the variable declaration.

      Returns VariableDeclaration

    • Gets a variable declaration or throws if it doesn't exist.

      Parameters

      • findFunction: (declaration: VariableDeclaration) => boolean

        Function to use to find the variable declaration.

      Returns VariableDeclaration

    • Gets all the variable declarations within the variable statement children.

      Returns VariableDeclaration[]

      This does not return the variable declarations within for statements or for of statements.

    • Gets a variable statement.

      Parameters

      • name: string

        Name of one of the variable statement's declarations.

      Returns VariableStatement | undefined

    • Gets a variable statement.

      Parameters

      • findFunction: (declaration: VariableStatement) => boolean

        Function to use to find the variable statement.

      Returns VariableStatement | undefined

    • Gets a variable statement or throws if it doesn't exist.

      Parameters

      • name: string

        Name of one of the variable statement's declarations.

      Returns VariableStatement

    • Gets a variable statement or throws if it doesn't exist.

      Parameters

      • findFunction: (declaration: VariableStatement) => boolean

        Function to use to find the variable statement.

      Returns VariableStatement

    • Gets the direct variable statement children.

      Returns VariableStatement[]

    • Gets the text length of the node without trivia.

      Parameters

      • OptionalincludeJsDocComments: boolean

        Whether to include the JS doc comments in the width or not.

      Returns number

    • Inserts statements at the specified index.

      Parameters

      Returns Statement<tsc.Statement>[]

      The statements that were inserted.

    • Inserts text within the body of the node.

      WARNING: This will forget any previously navigated descendant nodes.

      Parameters

      • pos: number

        Position to insert at.

      • textOrWriterFunction: string | WriterFunction

        Text to insert.

      Returns this

    • Gets if this is the first node on the current line.

      Returns boolean

    • Gets if the specified position is within a string.

      Parameters

      • pos: number

        Position.

      Returns boolean

    • Gets if this node is in a syntax list.

      Returns boolean

    • Prepends the specified whitespace to current node.

      Parameters

      • textOrWriterFunction: string | WriterFunction

        Text or writer function.

      Returns void

    • Prints the node using the compiler's printer.

      Parameters

      Returns string

    • Removes the default clause.

      Returns void

    • Removes the statement at the specified index.

      Parameters

      • index: number

        Child index to remove the statement at.

      Returns this

    • Removes the statements at the specified index range.

      Parameters

      • indexRange: [number, number]

        The start and end inclusive index range to remove.

      Returns this

    • Removes all the text within the node

      Returns this

    • Removes text within the body of the node.

      WARNING: This will forget any previously navigated descendant nodes.

      Parameters

      • pos: number

        Start position to remove.

      • end: number

        End position to remove.

      Returns this

    • Replaces text within the body of the node.

      WARNING: This will forget any previously navigated descendant nodes.

      Parameters

      • range: [number, number]

        Start and end position of the text to replace.

      • textOrWriterFunction: string | WriterFunction

        Text to replace the range with.

      Returns this

    • Replaces the text of the current node with new text.

      This will forget the current node and return a new node that can be asserted or type guarded to the correct type.

      Parameters

      • textOrWriterFunction: string | WriterFunction

        Text or writer function to replace with.

      Returns Node

      The new node.

      This will replace the text from the Node#getStart(true) position (start position with js docs) to Node#getEnd(). Use Node#getText(true) to get all the text that will be replaced.

    • Transforms the node using the compiler api nodes and functions and returns the node that was transformed (experimental).

      WARNING: This will forget descendants of transformed nodes and potentially this node.

      Parameters

      Returns Node

      sourceFile.transform(traversal => {
      const node = traversal.visitChildren(); // recommend always visiting the children first (post order)
      if (ts.isNumericLiteral(node))
      return ts.createNumericLiteral((parseInt(node.text, 10) + 1).toString());
      return node;
      });
      const classDec = sourceFile.getClassOrThrow("MyClass");
      classDec.transform(traversal => {
      const node = traversal.currentNode;
      return ts.updateClassDeclaration(node, undefined, undefined, ts.createIdentifier("MyUpdatedClass"), undefined, undefined, []);
      });
    • Gets if the compiler node was forgotten.

      This will be true when the compiler node was forgotten or removed.

      Returns boolean

    • Gets if the node has a body.

      Type Parameters

      Parameters

      • node: T

        Node to check.

      Returns node is T & { getBody(): Node }

    • Gets if the node has an expression.

      Type Parameters

      Parameters

      • node: T

        Node to check.

      Returns node is T & { getExpression(): Expression }

    • Gets if the node has a name.

      Type Parameters

      Parameters

      • node: T

        Node to check.

      Returns node is T & { getName(): string; getNameNode(): Node }

    • Gets if the node has a structure.

      Type Parameters

      Parameters

      • node: T

        Node to check.

      Returns node is T & { getStructure(): Structures }

    • Creates a type guard for syntax kinds.

      Type Parameters

      • TKind extends number

      Parameters

      Returns (node: Node<tsc.Node> | undefined) => node is KindToNodeMappings[TKind]

    • Gets if the node is an ArgumentedNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is ArgumentedNode & ArgumentedNodeExtensionType & T

    • Gets if the node is an ArrayTypeNode.

      Parameters

      Returns node is ArrayTypeNode

    • Gets if the node is an AwaitableNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is AwaitableNode & AwaitableNodeExtensionType & T

    • Gets if the node is a BindingNamedNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is BindingNamedNode & BindingNamedNodeExtensionType & T

    • Gets if the node is a BodiedNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is BodiedNode & BodiedNodeExtensionType & T

    • Gets if the node is a BodyableNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is BodyableNode & BodyableNodeExtensionType & T

    • Gets if the node is a CallSignatureDeclaration.

      Parameters

      Returns node is CallSignatureDeclaration

    • Gets if the node is a ChildOrderableNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is ChildOrderableNode & ChildOrderableNodeExtensionType & T

    • Gets if the node is a ClassLikeDeclarationBase.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is ClassLikeDeclarationBase & ClassLikeDeclarationBaseExtensionType & T

    • Gets if the provided node is a CommentClassElement.

      Parameters

      Returns node is CommentClassElement

    • Gets if the provided node is a CommentEnumMember.

      Parameters

      Returns node is CommentEnumMember

    • Gets if the provided node is a CommentObjectLiteralElement.

      Parameters

      Returns node is CommentObjectLiteralElement

    • Gets if the provided node is a CommentStatement.

      Parameters

      Returns node is CommentStatement

    • Gets if the provided value is a CommentTypeElement.

      Parameters

      Returns node is CommentTypeElement

    • Gets if the node is a ConditionalTypeNode.

      Parameters

      Returns node is ConditionalTypeNode

    • Gets if the node is a ConstructorDeclaration.

      Parameters

      Returns node is ConstructorDeclaration

    • Gets if the node is a ConstructorTypeNode.

      Parameters

      Returns node is ConstructorTypeNode

    • Gets if the node is a ConstructSignatureDeclaration.

      Parameters

      Returns node is ConstructSignatureDeclaration

    • Gets if the node is a DotDotDotTokenableNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is DotDotDotTokenableNode & DotDotDotTokenableNodeExtensionType & T

    • Gets if the node is an ExclamationTokenableNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is ExclamationTokenableNode & ExclamationTokenableNodeExtensionType & T

    • Gets if the node is an ExportGetableNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is ExportGetableNode & ExportGetableNodeExtensionType & T

    • Gets if the node is an Expression.

      Parameters

      Returns node is Expression<tsc.Expression>

    • Gets if the node is an ExpressionableNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is ExpressionableNode & ExpressionableNodeExtensionType & T

    • Gets if the node is an ExpressionedNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is ExpressionedNode & ExpressionedNodeExtensionType & T

    • Gets if the node is a FalseLiteral.

      Parameters

      Returns node is FalseLiteral

    • Gets if the node is a FunctionLikeDeclaration.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is FunctionLikeDeclaration & FunctionLikeDeclarationExtensionType & T

    • Gets if the node is a FunctionTypeNode.

      Parameters

      Returns node is FunctionTypeNode

    • Gets if the node is a GeneratorableNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is GeneratorableNode & GeneratorableNodeExtensionType & T

    • Gets if the node is a GetAccessorDeclaration.

      Parameters

      Returns node is GetAccessorDeclaration

    • Gets if the node is a HeritageClauseableNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is HeritageClauseableNode & HeritageClauseableNodeExtensionType & T

    • Gets if the node is a ImportAttributeNamedNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is ImportAttributeNamedNode & ImportAttributeNamedNodeExtensionType & T

    • Gets if the node is a ImportExpression.

      Parameters

      Returns node is ImportExpression

    • Gets if the node is a ImportTypeNode.

      Parameters

      Returns node is ImportTypeNode

    • Gets if the node is a IndexedAccessTypeNode.

      Parameters

      Returns node is IndexedAccessTypeNode

    • Gets if the node is a IndexSignatureDeclaration.

      Parameters

      Returns node is IndexSignatureDeclaration

    • Gets if the node is a InferTypeNode.

      Parameters

      Returns node is InferTypeNode

    • Gets if the node is a InitializerExpressionableNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is InitializerExpressionableNode & InitializerExpressionableNodeExtensionType & T

    • Gets if the node is a InitializerExpressionGetableNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is InitializerExpressionGetableNode & InitializerExpressionGetableNodeExtensionType & T

    • Gets if the node is a IntersectionTypeNode.

      Parameters

      Returns node is IntersectionTypeNode

    • Gets if the node is a JSDocableNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is JSDocableNode & JSDocableNodeExtensionType & T

    • Gets if the node is a JSDocTag.

      Parameters

      Returns node is JSDocTag<tsc.JSDocTag>

    • Gets if the node is a JSDocType.

      Parameters

      Returns node is JSDocType<tsc.JSDocType>

    • Gets if the node is a JSDocUnknownTag.

      Parameters

      Returns node is JSDocUnknownTag

    • Gets if the node is a JsxTagNamedNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is JsxTagNamedNode & JsxTagNamedNodeExtensionType & T

    • Gets if the node is a LeftHandSideExpressionedNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is LeftHandSideExpressionedNode & LeftHandSideExpressionedNodeExtensionType & T

    • Gets if the node is a LiteralLikeNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is LiteralLikeNode & LiteralLikeNodeExtensionType & T

    • Gets if the node is a LiteralTypeNode.

      Parameters

      Returns node is LiteralTypeNode

    • Gets if the node is a MappedTypeNode.

      Parameters

      Returns node is MappedTypeNode

    • Gets if the node is a ModifierableNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is ModifierableNode & ModifierableNodeExtensionType & T

    • Gets if the node is a ModuleChildableNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is ModuleChildableNode & ModuleChildableNodeExtensionType & T

    • Gets if the node is a ModuleNamedNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is ModuleNamedNode & ModuleNamedNodeExtensionType & T

    • Gets if the node is a NameableNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is NameableNode & NameableNodeExtensionType & T

    • Gets if the node is a NamedNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is NamedNode & NamedNodeExtensionType & T

    • Gets if the provided value is a Node.

      Parameters

      • value: unknown

      Returns value is Node<tsc.Node>

    • Gets if the node is a NullLiteral.

      Parameters

      Returns node is NullLiteral

    • Gets if the node is a ParameterDeclaration.

      Parameters

      Returns node is ParameterDeclaration

    • Gets if the node is a ParameteredNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is ParameteredNode & ParameteredNodeExtensionType & T

    • Gets if the node is a ParenthesizedTypeNode.

      Parameters

      Returns node is ParenthesizedTypeNode

    • Gets if the node is a PropertyNamedNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is PropertyNamedNode & PropertyNamedNodeExtensionType & T

    • Gets if the node is a QuestionDotTokenableNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is QuestionDotTokenableNode & QuestionDotTokenableNodeExtensionType & T

    • Gets if the node is a QuestionTokenableNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is QuestionTokenableNode & QuestionTokenableNodeExtensionType & T

    • Gets if the node is a ReferenceFindableNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is ReferenceFindableNode & ReferenceFindableNodeExtensionType & T

    • Gets if the node is a RenameableNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is RenameableNode & RenameableNodeExtensionType & T

    • Gets if the node is a RestTypeNode.

      Parameters

      Returns node is RestTypeNode

    • Gets if the node is a ReturnTypedNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is ReturnTypedNode & ReturnTypedNodeExtensionType & T

    • Gets if the node is a SetAccessorDeclaration.

      Parameters

      Returns node is SetAccessorDeclaration

    • Gets if the node is a SignaturedDeclaration.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is SignaturedDeclaration & SignaturedDeclarationExtensionType & T

    • Gets if the node is a Statement.

      Parameters

      Returns node is Statement<tsc.Statement>

    • Gets if the node is a StatementedNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is StatementedNode & StatementedNodeExtensionType & T

    • Gets if the node is a SuperExpression.

      Parameters

      Returns node is SuperExpression

    • Gets if the node is a TemplateLiteralTypeNode.

      Parameters

      Returns node is TemplateLiteralTypeNode

    • Gets if the node is a TextInsertableNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is TextInsertableNode & TextInsertableNodeExtensionType & T

    • Gets if the node is a ThisExpression.

      Parameters

      Returns node is ThisExpression

    • Gets if the node is a ThisTypeNode.

      Parameters

      Returns node is ThisTypeNode

    • Gets if the node is a TrueLiteral.

      Parameters

      Returns node is TrueLiteral

    • Gets if the node is a TupleTypeNode.

      Parameters

      Returns node is TupleTypeNode

    • Gets if the node is a TypeArgumentedNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is TypeArgumentedNode & TypeArgumentedNodeExtensionType & T

    • Gets if the node is a TypeAssertion.

      Parameters

      Returns node is TypeAssertion

    • Gets if the node is a TypedNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is TypedNode & TypedNodeExtensionType & T

    • Gets if the node is a TypeElementMemberedNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is TypeElementMemberedNode & TypeElementMemberedNodeExtensionType & T

    • Gets if the node is a TypeLiteralNode.

      Parameters

      Returns node is TypeLiteralNode

    • Gets if the node is a TypeNode.

      Parameters

      Returns node is TypeNode<tsc.TypeNode>

    • Gets if the node is a TypeOperatorTypeNode.

      Parameters

      Returns node is TypeOperatorTypeNode

    • Gets if the node is a TypeParameterDeclaration.

      Parameters

      Returns node is TypeParameterDeclaration

    • Gets if the node is a TypeParameteredNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is TypeParameteredNode & TypeParameteredNodeExtensionType & T

    • Gets if the node is a TypePredicateNode.

      Parameters

      Returns node is TypePredicateNode

    • Gets if the node is a TypeQueryNode.

      Parameters

      Returns node is TypeQueryNode

    • Gets if the node is a TypeReferenceNode.

      Parameters

      Returns node is TypeReferenceNode

    • Gets if the node is a UnaryExpressionedNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is UnaryExpressionedNode & UnaryExpressionedNodeExtensionType & T

    • Gets if the node is a UnionTypeNode.

      Parameters

      Returns node is UnionTypeNode

    • Gets if the node is a UnwrappableNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is UnwrappableNode & UnwrappableNodeExtensionType & T