Package-level declarations

Types

Link copied to clipboard
typealias __String = Any

This represents a string whose leading underscore have been escaped by adding extra leading underscores. The shape of this brand is rather unique compared to others we've used. Instead of just an intersection of a string and an object, it is that union-ed with an intersection of void and an object. This makes it wholly incompatible with a normal string (which is good, it cannot be misused on assignment or on usage), while still being comparable with a normal string via === (also good) and castable from a string.

Link copied to clipboard
sealed external interface AccessExpression : Node
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
sealed external interface AmdDependency
Link copied to clipboard
sealed external interface ApplicableRefactorInfo

A set of one or more available refactoring actions, grouped under a parent refactoring.

Link copied to clipboard
sealed external interface ApplyCodeActionCommandResult
Link copied to clipboard
sealed external interface ArrayBindingElement : Node
Link copied to clipboard
Link copied to clipboard
sealed external interface ArrayBindingPatternParent : Node
Link copied to clipboard
sealed external interface ArrayTypeNode : TypeNode, TypeReferenceNodeField
Link copied to clipboard
sealed external interface AsExpression : Expression, AssertionExpression
Link copied to clipboard
sealed external interface AssertClause : ImportAttributes
Link copied to clipboard
sealed external interface AssertEntry : ImportAttribute
Link copied to clipboard
sealed external interface AssertionExpression : Node, HasType
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
sealed external interface AssignmentPattern : Node
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
sealed external interface AwaitExpression : UnaryExpression
Link copied to clipboard
Link copied to clipboard
sealed external interface BaseType
Link copied to clipboard
sealed external interface BigIntLiteral : LiteralExpression, LiteralToken
Link copied to clipboard
sealed external interface BigIntLiteralType : LiteralType
Link copied to clipboard
Link copied to clipboard
sealed external interface BinaryOperator : SyntaxKind
Link copied to clipboard
Link copied to clipboard
sealed external interface BindingName : Node, DeclarationName
Link copied to clipboard
sealed external interface BindingOrAssignmentElement : Node
Link copied to clipboard
sealed external interface BindingOrAssignmentElementRestIndicator : Node
Link copied to clipboard
sealed external interface BindingOrAssignmentElementTarget : Node
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
sealed external interface Block : Statement, LocalsContainer, HasJSDoc, BlockLike
Link copied to clipboard
sealed external interface BlockLike : Node
Link copied to clipboard
sealed external interface BreakOrContinueStatement : Node
Link copied to clipboard
Link copied to clipboard
sealed external interface BufferEncoding
Link copied to clipboard
sealed external interface BuilderProgram

Builder to manage the program state changes

Link copied to clipboard
sealed external interface BuilderProgramHost
Link copied to clipboard
Link copied to clipboard
sealed external interface BuildOptions
Link copied to clipboard
sealed external interface Bundle : Node
Link copied to clipboard
sealed external interface BundlePrependsItem : Node
Link copied to clipboard
Link copied to clipboard
sealed external interface CallHierarchyIncomingCall
Link copied to clipboard
sealed external interface CallHierarchyItem
Link copied to clipboard
sealed external interface CallHierarchyOutgoingCall
Link copied to clipboard
sealed external interface CallLikeExpression : Node
Link copied to clipboard
sealed external interface CancellationToken
Link copied to clipboard
sealed external interface CaseBlock : Node, LocalsContainer
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
sealed external interface CaseOrDefaultClause : Node, BlockLike
Link copied to clipboard
Link copied to clipboard
sealed external interface CheckJsDirective : TextRange
Link copied to clipboard
Link copied to clipboard
sealed external interface ClassificationInfo
Link copied to clipboard
sealed external interface ClassificationResult
Link copied to clipboard
sealed external interface Classifications
Link copied to clipboard
sealed external interface ClassificationType
Link copied to clipboard
sealed external interface ClassificationTypeNames
Link copied to clipboard
sealed external interface ClassifiedSpan
Link copied to clipboard
sealed external interface ClassifiedSpan2020
Link copied to clipboard
sealed external interface Classifier
Link copied to clipboard
Link copied to clipboard
sealed external interface ClassLikeDeclarationBaseKind : SyntaxKind
Link copied to clipboard
sealed external interface ClassMemberModifier : Node
Link copied to clipboard
sealed external interface ClassStaticBlockDeclarationParent : Node
Link copied to clipboard
sealed external interface CodeAction
Link copied to clipboard
Link copied to clipboard
sealed external interface CodeFixAction : CodeAction
Link copied to clipboard
Link copied to clipboard
sealed external interface CombinedCodeActions
Link copied to clipboard
sealed external interface CombinedCodeFixScope
Link copied to clipboard
sealed external interface CommaListExpression : Expression

A list of comma-separated expressions. This node is only created by transformations.

Link copied to clipboard
sealed external interface CommentKind : SyntaxKind
Link copied to clipboard
sealed external interface CommentRange : TextRange
Link copied to clipboard
sealed external interface CompilerHost : ModuleResolutionHost
Link copied to clipboard
sealed external interface CompilerOptions
Link copied to clipboard
Link copied to clipboard
sealed external interface CompletionEntry
Link copied to clipboard
sealed external interface CompletionEntryData
Link copied to clipboard
sealed external interface CompletionEntryDataAutoImport
Link copied to clipboard
sealed external interface CompletionEntryDetails
Link copied to clipboard
sealed external interface CompletionEntryLabelDetails
Link copied to clipboard
sealed external interface CompletionInfo
Link copied to clipboard
sealed external interface CompletionInfoFlags
Link copied to clipboard
Link copied to clipboard
sealed external interface CompletionTriggerKind
Link copied to clipboard
Link copied to clipboard
sealed external interface ComputedPropertyName : Node, PropertyName
Link copied to clipboard
sealed external interface ConciseBody : Node
Link copied to clipboard
sealed external interface ConditionalExpression : Expression
Link copied to clipboard
sealed external interface ConditionalRoot
Link copied to clipboard
sealed external interface ConditionalType : InstantiableType
Link copied to clipboard
sealed external interface ConditionalTypeNode : TypeNode, LocalsContainer
Link copied to clipboard
sealed external interface ConfigFileDiagnosticsReporter

Reports config file diagnostics

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
sealed external interface ConvertCompilerOptionsFromJsonResult
Link copied to clipboard
sealed external interface ConvertTypeAcquisitionFromJsonResult
Link copied to clipboard
sealed external interface CoreTransformationContext
Link copied to clipboard
typealias CreateProgram<T> = (rootNames: ReadonlyArray<String>?, options: CompilerOptions?, host: CompilerHost?, oldProgram: T?, configFileParsingDiagnostics: ReadonlyArray<Diagnostic>?, projectReferences: ReadonlyArray<ProjectReference>?) -> T

Create the program with rootNames and options, if they are undefined, oldProgram and new configFile diagnostics create new program

Link copied to clipboard
sealed external interface CreateProgramOptions
Link copied to clipboard
sealed external interface CreateSourceFileOptions
Link copied to clipboard
sealed external interface CreateUnparsedSourceFileType
Link copied to clipboard
sealed external interface CustomTransformer
Link copied to clipboard
sealed external interface CustomTransformers
Link copied to clipboard
sealed external interface DebuggerStatement : Statement, FlowContainer, HasJSDoc
Link copied to clipboard
sealed external interface Declaration : Node
Link copied to clipboard
sealed external interface DeclarationName : Node
Link copied to clipboard
sealed external interface DeclarationStatement : NamedDeclaration, Statement
Link copied to clipboard
sealed external interface DeclarationStatementName : Node, DeclarationName
Link copied to clipboard
sealed external interface DeclarationWithTypeParameters : Node
Link copied to clipboard
sealed external interface Decorator : Node, ModifierLike, CallLikeExpression
Link copied to clipboard
sealed external interface DefaultClause : Node, CaseOrDefaultClause
Link copied to clipboard
sealed external interface DeferredTypeReference : TypeReference
Link copied to clipboard
sealed external interface DefinitionInfo : DocumentSpan
Link copied to clipboard
sealed external interface DefinitionInfoAndBoundSpan
Link copied to clipboard
sealed external interface DeleteExpression : UnaryExpression
Link copied to clipboard
sealed external interface DestructuringAssignment : Node
Link copied to clipboard
sealed external interface DestructuringPattern : Node
Link copied to clipboard
sealed external interface Diagnostic : DiagnosticRelatedInformation
Link copied to clipboard
sealed external interface DiagnosticCategory
Link copied to clipboard
sealed external interface DiagnosticMessage
Link copied to clipboard
sealed external interface DiagnosticMessageChain

A linked list of formatted diagnostic messages to be used as part of a multiline message. It is built from the bottom up, leaving the head to be the "main" diagnostic. While it seems that DiagnosticMessageChain is structurally similar to DiagnosticMessage, the difference is that messages are all preformatted in DMC.

Link copied to clipboard
sealed external interface DiagnosticRelatedInformation
Link copied to clipboard
typealias DiagnosticReporter = (diagnostic: Diagnostic) -> Unit
Link copied to clipboard
sealed external interface DiagnosticWithLocation : Diagnostic
Link copied to clipboard
typealias DirectoryWatcherCallback = (fileName: String) -> Unit
Link copied to clipboard
sealed external interface DocCommentTemplateOptions
Link copied to clipboard
sealed external interface DocumentHighlights
Link copied to clipboard
sealed external interface DocumentRegistry

The document registry represents a store of SourceFile objects that can be shared between multiple LanguageService instances. A LanguageService instance holds on the SourceFile (AST) of files in the context. SourceFile objects account for most of the memory usage by the language service. Sharing the same DocumentRegistry instance between different instances of LanguageService allow for more efficient memory utilization since all projects will share at least the library file (lib.d.ts).

Link copied to clipboard
Link copied to clipboard
sealed external interface DocumentSpan
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
sealed external interface EditorOptions
Link copied to clipboard
sealed external interface EditorSettings
Link copied to clipboard
sealed external interface ElementFlags
Link copied to clipboard

The builder that can handle the changes in program and iterate through changed file to emit the files The semantic diagnostics are cached per file and managed by clearing for the changed/affected files

Link copied to clipboard
sealed external interface EmitFlags
Link copied to clipboard
sealed external interface EmitHelper
Link copied to clipboard
sealed external interface EmitHelperBase
Link copied to clipboard
Link copied to clipboard
sealed external interface EmitHint
Link copied to clipboard
sealed external interface EmitOutput
Link copied to clipboard
sealed external interface EmitResult
Link copied to clipboard
sealed external interface EmptyStatement : Statement, HasJSDoc
Link copied to clipboard
Link copied to clipboard
sealed external interface EndOfLineState
Link copied to clipboard
sealed external interface EntityNameOrEntityNameExpression : Node
Link copied to clipboard
Link copied to clipboard
sealed external interface EnumType : FreshableType
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
typealias ErrorCallback = (message: DiagnosticMessage, length: Double, arg0: Any?) -> Unit
Link copied to clipboard
sealed external interface EvolvingArrayType : ObjectType
Link copied to clipboard
sealed external interface ExitStatus

Return code used by getEmitOutput function to indicate status of the function

Link copied to clipboard

This is either an export = or an export default declaration. Unless isExportEquals is set, this node was parsed as an export default.

Link copied to clipboard
sealed external interface ExportDeclarationParent : Node
Link copied to clipboard
Link copied to clipboard
typealias ExportMapInfoKey = Any
Link copied to clipboard
Link copied to clipboard
sealed external interface ExpressionStatement : Statement, FlowContainer, HasJSDoc
Link copied to clipboard
sealed external interface ExtendedConfigCacheEntry
Link copied to clipboard
sealed external interface Extension
Link copied to clipboard
sealed external interface ExternalModuleReference : Node, ModuleReference
Link copied to clipboard
sealed external interface FalseLiteral : PrimaryExpression, BooleanLiteral
Link copied to clipboard
sealed external interface FileExtensionInfo
Link copied to clipboard
sealed external interface FileReference : TextRange
Link copied to clipboard
sealed external interface FileTextChanges
Link copied to clipboard
sealed external interface FileWatcher
Link copied to clipboard
typealias FileWatcherCallback = (fileName: String, eventKind: FileWatcherEventKind, modifiedTime: Date?) -> Unit
Link copied to clipboard
sealed external interface FileWatcherEventKind
Link copied to clipboard
sealed external interface FlowArrayMutation : FlowNodeBase, FlowNode
Link copied to clipboard
sealed external interface FlowArrayMutationNode : Node
Link copied to clipboard
sealed external interface FlowAssignment : FlowNodeBase, FlowNode
Link copied to clipboard
sealed external interface FlowAssignmentNode : Node
Link copied to clipboard
sealed external interface FlowCall : FlowNodeBase, FlowNode
Link copied to clipboard
sealed external interface FlowCondition : FlowNodeBase, FlowNode
Link copied to clipboard
sealed external interface FlowContainer : Node
Link copied to clipboard
sealed external interface FlowFlags
Link copied to clipboard
sealed external interface FlowLabel : FlowNodeBase, FlowNode
Link copied to clipboard
sealed external interface FlowNode
Link copied to clipboard
sealed external interface FlowNodeBase
Link copied to clipboard
sealed external interface FlowReduceLabel : FlowNodeBase, FlowNode
Link copied to clipboard
sealed external interface FlowStart : FlowNodeBase, FlowNode
Link copied to clipboard
sealed external interface FlowStartNode : Node
Link copied to clipboard
sealed external interface FlowSwitchClause : FlowNodeBase, FlowNode
Link copied to clipboard
sealed external interface FlowType
Link copied to clipboard
sealed external interface ForInitializer : Node
Link copied to clipboard
sealed external interface ForInOrOfStatement : Node
Link copied to clipboard
sealed external interface FormatCodeOptions : EditorOptions
Link copied to clipboard
sealed external interface FormatCodeSettings : EditorSettings
Link copied to clipboard
sealed external interface FormatDiagnosticsHost
Link copied to clipboard
sealed external interface FreshableType : Type
Link copied to clipboard
sealed external interface FunctionBody : Block, ConciseBody
Link copied to clipboard
Link copied to clipboard
sealed external interface FunctionLikeDeclaration : Node
Link copied to clipboard

Several node kinds share function-like features such as a signature, a name, and a body. These nodes should extend FunctionLikeDeclarationBase. Examples:

Link copied to clipboard
sealed external interface FunctionOrConstructorTypeNode : Node
Link copied to clipboard
Link copied to clipboard
sealed external interface GeneratedIdentifierFlags
Link copied to clipboard
sealed external interface GenericType : InterfaceType, TypeReference
Link copied to clipboard
sealed external interface GetAccessorDeclarationParent : Node
Link copied to clipboard
Link copied to clipboard
sealed external interface GetEffectiveTypeRootsHost
Link copied to clipboard
sealed external interface GetJSDocCommentsAndTagsResultItem : Node
Link copied to clipboard
sealed external interface GetModeForUsageLocationFile
Link copied to clipboard
sealed external interface HasDecorators : Node
Link copied to clipboard
sealed external interface HasExpressionInitializer : Node, HasInitializer
Link copied to clipboard
sealed external interface HasInitializer : Node
Link copied to clipboard
sealed external interface HasJSDoc : Node
Link copied to clipboard
sealed external interface HasModifiers : Node
Link copied to clipboard
sealed external interface HasType : Node
Link copied to clipboard
sealed external interface HasTypeArguments : Node
Link copied to clipboard
sealed external interface HeritageClause : Node
Link copied to clipboard
sealed external interface HeritageClauseParent : Node
Link copied to clipboard
sealed external interface HeritageClauseToken : SyntaxKind
Link copied to clipboard
sealed external interface HighlightSpan
Link copied to clipboard
sealed external interface HighlightSpanKind
Link copied to clipboard
sealed external interface HostCancellationToken
Link copied to clipboard
Link copied to clipboard
sealed external interface IfStatement : Statement, FlowContainer, HasJSDoc
Link copied to clipboard
Link copied to clipboard
sealed external interface ImplementationLocation : DocumentSpan
Link copied to clipboard
sealed external interface ImportAttribute : Node
Link copied to clipboard
sealed external interface ImportAttributeName : Node
Link copied to clipboard
sealed external interface ImportAttributes : Node
Link copied to clipboard
sealed external interface ImportAttributesParent : Node
Link copied to clipboard
sealed external interface ImportAttributesToken : SyntaxKind
Link copied to clipboard
sealed external interface ImportCall : CallExpression
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
sealed external interface ImportDeclarationParent : Node
Link copied to clipboard
sealed external interface ImportEqualsDeclarationParent : Node
Link copied to clipboard
sealed external interface ImportExpression : PrimaryExpression
Link copied to clipboard
Link copied to clipboard
sealed external interface ImportsNotUsedAsValues
Link copied to clipboard
sealed external interface ImportTypeAssertionContainer : Node
Link copied to clipboard
sealed external interface ImportTypeNode : NodeWithTypeArguments
Link copied to clipboard
sealed external interface IncompleteCompletionsCache
Link copied to clipboard
sealed external interface IncompleteType : FlowType
Link copied to clipboard
sealed external interface IncrementalProgramOptions<T : BuilderProgram>
Link copied to clipboard

Deprecated, please use UpdateExpression

Link copied to clipboard
sealed external interface IndentStyle
Link copied to clipboard
sealed external interface IndexedAccessType : InstantiableType, TypeVariable
Link copied to clipboard
sealed external interface IndexedAccessTypeNode : TypeNode
Link copied to clipboard
sealed external interface IndexInfo
Link copied to clipboard
sealed external interface IndexKind
Link copied to clipboard
sealed external interface IndexType : InstantiableType
Link copied to clipboard
sealed external interface IndexTypeType
Link copied to clipboard
sealed external interface InferencePriority
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
sealed external interface InlayHint
Link copied to clipboard
sealed external interface InlayHintDisplayPart
Link copied to clipboard
sealed external interface InlayHintKind
Link copied to clipboard
sealed external interface InlayHintsContext
Link copied to clipboard
sealed external interface InstallPackageAction
Link copied to clipboard
sealed external interface InstallPackageOptions
Link copied to clipboard
Link copied to clipboard
sealed external interface InstantiableType : Type, IndexTypeType
Link copied to clipboard
sealed external interface InteractiveRefactorArguments
Link copied to clipboard
sealed external interface InterfaceType : ObjectType

Class and interface types (ObjectFlags.Class and ObjectFlags.Interface).

Link copied to clipboard
Link copied to clipboard
sealed external interface InternalSymbolName
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
typealias InvalidatedProject<T> = Any
Link copied to clipboard
sealed external interface InvalidatedProjectBase
Link copied to clipboard
sealed external interface InvalidatedProjectKind
Link copied to clipboard
sealed external interface IsCallOrNewExpressionResultPredicate : Node
Link copied to clipboard
sealed external interface IsClassOrTypeElementResultPredicate : Node
Link copied to clipboard
sealed external interface IScriptSnapshot

Represents an immutable snapshot of a script at a specified time.Once acquired, the snapshot is observably immutable. i.e. the same calls with the same parameters will return the same values.

Link copied to clipboard
Link copied to clipboard
sealed external interface IsIterationStatementResultPredicate : Node
Link copied to clipboard
sealed external interface IsJSDocLinkLikeResultPredicate : Node
Link copied to clipboard
sealed external interface IsLiteralTypeLiteralResultPredicate : Node
Link copied to clipboard
sealed external interface IsOptionalChainResultPredicate : Node
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
sealed external interface JSDocAllType : JSDocType
Link copied to clipboard
sealed external interface JSDocAugmentsTag : JSDocTag

Note that @extends is a synonym of @augments. Both tags are represented by this interface.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
sealed external interface JSDocAuthorTag : JSDocTag
Link copied to clipboard
sealed external interface JSDocCallbackTagFullName : Node
Link copied to clipboard
sealed external interface JSDocClassTag : JSDocTag
Link copied to clipboard
sealed external interface JSDocComment : Node
Link copied to clipboard
sealed external interface JSDocContainer : Node
Link copied to clipboard
sealed external interface JSDocDeprecatedTag : JSDocTag
Link copied to clipboard
sealed external interface JSDocEnumTag : JSDocTag, Declaration, LocalsContainer
Link copied to clipboard
sealed external interface JSDocImplementsTag : JSDocTag
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
sealed external interface JSDocLinkCodeName : Node
Link copied to clipboard
sealed external interface JSDocLinkDisplayPart : SymbolDisplayPart
Link copied to clipboard
sealed external interface JSDocLinkName : Node
Link copied to clipboard
Link copied to clipboard
sealed external interface JSDocLinkPlainName : Node
Link copied to clipboard
Link copied to clipboard
sealed external interface JSDocMemberNameLeft : Node
Link copied to clipboard
sealed external interface JSDocNamepathType : JSDocType
Link copied to clipboard
sealed external interface JSDocNameReference : Node
Link copied to clipboard
sealed external interface JSDocNameReferenceName : Node
Link copied to clipboard
sealed external interface JSDocNamespaceBody : Node, ModuleBody
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
sealed external interface JSDocOverloadTag : JSDocTag
Link copied to clipboard
sealed external interface JSDocOverrideTag : JSDocTag
Link copied to clipboard
Link copied to clipboard
sealed external interface JSDocParsingMode
Link copied to clipboard
sealed external interface JSDocPrivateTag : JSDocTag
Link copied to clipboard
sealed external interface JSDocPropertyLikeTag : JSDocTag, Declaration
Link copied to clipboard
Link copied to clipboard
sealed external interface JSDocProtectedTag : JSDocTag
Link copied to clipboard
sealed external interface JSDocPublicTag : JSDocTag
Link copied to clipboard
sealed external interface JSDocReadonlyTag : JSDocTag
Link copied to clipboard
sealed external interface JSDocReturnTag : JSDocTag
Link copied to clipboard
sealed external interface JSDocSatisfiesTag : JSDocTag
Link copied to clipboard
sealed external interface JSDocSeeTag : JSDocTag
Link copied to clipboard
sealed external interface JSDocSyntaxKind : SyntaxKind
Link copied to clipboard
sealed external interface JSDocTag : Node, GetJSDocCommentsAndTagsResultItem
Link copied to clipboard
sealed external interface JSDocTagInfo
Link copied to clipboard
sealed external interface JSDocTagParent : Node
Link copied to clipboard
Link copied to clipboard
sealed external interface JSDocText : Node, JSDocComment
Link copied to clipboard
sealed external interface JSDocThisTag : JSDocTag
Link copied to clipboard
sealed external interface JSDocThrowsTag : JSDocTag
Link copied to clipboard
sealed external interface JSDocType : TypeNode
Link copied to clipboard
sealed external interface JSDocTypedefTagFullName : Node
Link copied to clipboard
sealed external interface JSDocTypedefTagTypeExpression : Node
Link copied to clipboard
sealed external interface JSDocTypeReferencingNode : Node
Link copied to clipboard
sealed external interface JSDocTypeTag : JSDocTag
Link copied to clipboard
sealed external interface JSDocUnknownTag : JSDocTag
Link copied to clipboard
sealed external interface JSDocUnknownType : JSDocType
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
sealed external interface JsonObjectExpression : Node, Expression
Link copied to clipboard
Link copied to clipboard
sealed external interface JsonSourceFile : SourceFile
Link copied to clipboard
external object JsTyping
Link copied to clipboard
Link copied to clipboard
sealed external interface JsxAttributeLike : Node, JsxExpressionParent
Link copied to clipboard
sealed external interface JsxAttributeName : Node, DeclarationName
Link copied to clipboard
sealed external interface JsxAttributes : PrimaryExpression, Declaration
Link copied to clipboard
sealed external interface JsxAttributeValue : Node
Link copied to clipboard
sealed external interface JsxChild : Node
Link copied to clipboard
sealed external interface JsxClosingElement : Node
Link copied to clipboard
sealed external interface JsxClosingFragment : Expression
Link copied to clipboard
sealed external interface JsxClosingTagInfo
Link copied to clipboard
Link copied to clipboard
sealed external interface JsxEmit
Link copied to clipboard
sealed external interface JsxExpressionParent : Node
Link copied to clipboard
sealed external interface JsxFlags
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
sealed external interface JsxOpeningFragment : Expression
Link copied to clipboard
sealed external interface JsxOpeningLikeElement : Node, CallLikeExpression
Link copied to clipboard
Link copied to clipboard
sealed external interface JsxTagNameExpression : Node
Link copied to clipboard
sealed external interface JsxText : LiteralLikeNode, LiteralToken, JsxChild
Link copied to clipboard
sealed external interface JsxTextParent : Node
Link copied to clipboard
sealed external interface JsxTokenSyntaxKind : SyntaxKind
Link copied to clipboard
Link copied to clipboard
sealed external interface KeywordToken<TKind : KeywordSyntaxKind> : Token<TKind>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
sealed external interface LanguageService
Link copied to clipboard
sealed external interface LanguageServiceMode
Link copied to clipboard
sealed external interface LanguageVariant
Link copied to clipboard
sealed external interface LeftHandSideExpression : UpdateExpression
Link copied to clipboard
sealed external interface LineAndCharacter
Link copied to clipboard
sealed external interface LinkedEditingInfo
Link copied to clipboard
sealed external interface ListFormat
Link copied to clipboard
sealed external interface LiteralLikeNode : Node
Link copied to clipboard
sealed external interface LiteralSyntaxKind : SyntaxKind, TokenSyntaxKind
Link copied to clipboard
sealed external interface LiteralToken : Node
Link copied to clipboard
sealed external interface LiteralType : FreshableType
Link copied to clipboard
sealed external interface LiteralTypeNode : TypeNode
Link copied to clipboard
sealed external interface LiteralTypeNodeLiteral : Node
Link copied to clipboard
sealed external interface LocalsContainer : Node
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
sealed external interface MapLike<T>

Type of objects whose values are all of the same type. The in and for-in operators can not be safely used, since Object.prototype may be modified by outside code.

Link copied to clipboard
Link copied to clipboard
sealed external interface MappedTypeNodeQuestionToken : Node
Link copied to clipboard
sealed external interface MappedTypeNodeReadonlyToken : Node
Link copied to clipboard
sealed external interface MemberExpression : LeftHandSideExpression
Link copied to clipboard
sealed external interface MemberName : Node, DeclarationName
Link copied to clipboard
sealed external interface MetaProperty : PrimaryExpression, FlowContainer
Link copied to clipboard
sealed external interface MetaPropertyKeywordToken : SyntaxKind
Link copied to clipboard
sealed external interface MethodDeclarationParent : Node
Link copied to clipboard
sealed external interface MethodSignatureParent : Node
Link copied to clipboard

Used by services to specify the minimum host area required to set up source files under any compilation settings

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
sealed external interface ModeAwareCache<T>
Link copied to clipboard
sealed external interface Modifier : Node, ModifierLike
Link copied to clipboard
sealed external interface ModifierFlags
Link copied to clipboard
sealed external interface ModifierLike : Node
Link copied to clipboard
Link copied to clipboard
sealed external interface ModifierSyntaxKind : SyntaxKind, KeywordSyntaxKind
Link copied to clipboard
sealed external interface ModifierToken<TKind : ModifierSyntaxKind> : KeywordToken<TKind>
Link copied to clipboard
Link copied to clipboard
sealed external interface ModuleDeclarationBody : Node
Link copied to clipboard
sealed external interface ModuleDeclarationParent : Node
Link copied to clipboard
sealed external interface ModuleDetectionKind
Link copied to clipboard
sealed external interface ModuleKind
Link copied to clipboard
sealed external interface ModuleName : Node, DeclarationStatementName
Link copied to clipboard
sealed external interface ModuleReference : Node
Link copied to clipboard
sealed external interface ModuleResolutionHost
Link copied to clipboard
sealed external interface ModuleResolutionKind
Link copied to clipboard
Link copied to clipboard
sealed external interface NamedDeclaration : Declaration
Link copied to clipboard
sealed external interface NamedExportBindings : Node
Link copied to clipboard
Link copied to clipboard
sealed external interface NamedImportBindings : Node
Link copied to clipboard
Link copied to clipboard
sealed external interface NamedImportsOrExports : Node
Link copied to clipboard
sealed external interface NamespaceBody : Node, ModuleBody
Link copied to clipboard
Link copied to clipboard
sealed external interface NavigateToItem
Link copied to clipboard
sealed external interface NavigateToItemMatchKind
Link copied to clipboard
sealed external interface NavigationBarItem

Navigation bar interface designed for visual studio's dual-column layout. This does not form a proper tree. The navbar is returned as a list of top-level items, each of which has a list of child items. Child items always have an empty array for their childItems.

Link copied to clipboard
sealed external interface NavigationTree

Node in a tree of nested declarations in a file. The top node is always a script or module node.

Link copied to clipboard
sealed external interface NewLineKind
Link copied to clipboard
sealed external interface Node : ReadonlyTextRange
Link copied to clipboard
sealed external interface NodeArray<out T : Node> : ReadonlyArrayAdapter<T> , ReadonlyTextRange
Link copied to clipboard
sealed external interface NodeBuilderFlags
Link copied to clipboard
sealed external interface NodeFactory
Link copied to clipboard
sealed external interface NodeFactoryCreateBundlePrependsItem : Node
Link copied to clipboard
Link copied to clipboard
sealed external interface NodeFactoryCreateLiteralTypeNodeLiteral
Link copied to clipboard
sealed external interface NodeFactoryUpdateBundlePrependsItem : Node
Link copied to clipboard
sealed external interface NodeFactoryUpdateLiteralTypeNodeLiteral
Link copied to clipboard
sealed external interface NodeFlags
Link copied to clipboard
sealed external interface NodesVisitor

A function that walks a node array using the given visitor, returning an array whose contents satisfy the test.

Link copied to clipboard
sealed external interface NodeVisitor

A function that walks a node using the given visitor, lifting node arrays into single nodes, returning an node which satisfies the test.

Link copied to clipboard
sealed external interface NodeWithTypeArguments : TypeNode
Link copied to clipboard
Link copied to clipboard
sealed external interface NonNullExpression : LeftHandSideExpression
Link copied to clipboard

Stored map from non-relative module name to a table: directory -> result of module lookup in this directory We support only non-relative module names because resolution of relative module names is usually more deterministic and thus less expensive.

Link copied to clipboard
sealed external interface NonRelativeNameResolutionCache<T>
Link copied to clipboard
sealed external interface NotEmittedStatement : Statement
Link copied to clipboard
sealed external interface NumberLiteralType : LiteralType
Link copied to clipboard
Link copied to clipboard
sealed external interface ObjectBindingPatternParent : Node
Link copied to clipboard
sealed external interface ObjectFlags
Link copied to clipboard
sealed external interface ObjectLiteralElement : NamedDeclaration
Link copied to clipboard

Unlike ObjectLiteralElement, excludes JSXAttribute and JSXSpreadAttribute.

Link copied to clipboard

This interface is a base interface for ObjectLiteralExpression and JSXAttributes to extend from. JSXAttributes is similar to ObjectLiteralExpression in that it contains array of properties; however, JSXAttributes' properties can only be JSXAttribute or JSXSpreadAttribute. ObjectLiteralExpression, on the other hand, can only have properties of type ObjectLiteralElement (e.g. PropertyAssignment, ShorthandPropertyAssignment etc.)

Link copied to clipboard
sealed external interface ObjectType : Type, BaseType, StructuredType
Link copied to clipboard
sealed external interface ObjectTypeDeclaration : Node
Link copied to clipboard
Link copied to clipboard
sealed external interface OptionalChain : Node
Link copied to clipboard
sealed external interface OptionalTypeNode : TypeNode
Link copied to clipboard
sealed external interface OrganizeImportsArgs : CombinedCodeFixScope
Link copied to clipboard
sealed external interface OrganizeImportsMode
Link copied to clipboard
sealed external interface OuterExpressionKinds
Link copied to clipboard
Link copied to clipboard
sealed external interface OutliningSpan
Link copied to clipboard
sealed external interface OutliningSpanKind
Link copied to clipboard
sealed external interface OutputFile
Link copied to clipboard
sealed external interface OutputFileType
Link copied to clipboard
sealed external interface PackageId

Unique identifier with a package name and version. If changing this, remember to change packageIdIsEqual.

Link copied to clipboard
sealed external interface PackageJsonInfoCache
Link copied to clipboard
Link copied to clipboard
sealed external interface ParameterPropertyModifier : Node
Link copied to clipboard
Link copied to clipboard
sealed external interface ParenthesizedTypeNode : TypeNode, HasType
Link copied to clipboard

Interface extending ParseConfigHost to support ParseConfigFile that reads config file and reports errors

Link copied to clipboard
sealed external interface ParseConfigFileTextToJsonResult
Link copied to clipboard
sealed external interface ParseConfigHost : ModuleResolutionHost
Link copied to clipboard
sealed external interface ParsedCommandLine

Either a parsed command line or a parsed tsconfig.json

Link copied to clipboard
sealed external interface ParsedTsconfig
Link copied to clipboard
Link copied to clipboard
typealias Path = Any
Link copied to clipboard
sealed external interface PerDirectoryResolutionCache<T>

Cached resolutions per containing directory. This assumes that any module id will have the same resolution for sibling files located in the same folder.

Link copied to clipboard
sealed external interface PerformanceEvent
Link copied to clipboard
sealed external interface PerformanceEventKind
Link copied to clipboard
sealed external interface PerNonRelativeNameCache<T>
Link copied to clipboard
sealed external interface PluginImport
Link copied to clipboard
Link copied to clipboard
sealed external interface PollingWatchKind
Link copied to clipboard
sealed external interface PostfixUnaryExpression : UpdateExpression
Link copied to clipboard
sealed external interface PostfixUnaryOperator : SyntaxKind
Link copied to clipboard
sealed external interface PrefixUnaryOperator : SyntaxKind
Link copied to clipboard
sealed external interface PreProcessedFileInfo
Link copied to clipboard
sealed external interface PrimaryExpression : MemberExpression
Link copied to clipboard
sealed external interface Printer
Link copied to clipboard
sealed external interface PrinterOptions
Link copied to clipboard
sealed external interface PrintHandlers
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
sealed external interface ProgramGetRelationCacheSizesResult
Link copied to clipboard
sealed external interface ProgramHost<T : BuilderProgram>
Link copied to clipboard
sealed external interface ProgramUpdateLevel
Link copied to clipboard
sealed external interface ProjectReference
Link copied to clipboard

Brand for a PropertyAccessExpression which, like a QualifiedName, consists of a sequence of identifiers separated by dots.

Link copied to clipboard
sealed external interface PropertyName : Node, DeclarationName
Link copied to clipboard
sealed external interface PropertyNameLiteral : Node
Link copied to clipboard
sealed external interface PropertySignatureParent : Node
Link copied to clipboard
sealed external interface PseudoBigInt

Represents a bigint literal value without requiring bigint support

Link copied to clipboard
Link copied to clipboard
sealed external interface PseudoLiteralToken : Node, TemplateLiteralToken
Link copied to clipboard
Link copied to clipboard
sealed external interface PunctuationSyntaxKind : SyntaxKind, TokenSyntaxKind
Link copied to clipboard
sealed external interface PunctuationToken<TKind : PunctuationSyntaxKind> : Token<TKind>
Link copied to clipboard
sealed external interface QuickInfo
Link copied to clipboard
sealed external interface ReadBuildProgramHost
Link copied to clipboard
sealed external interface ReadConfigFileResult
Link copied to clipboard
sealed external interface ReadonlyArrayAdapter<out T>
Link copied to clipboard
sealed external interface ReadonlyTextRange
Link copied to clipboard
sealed external interface RefactorActionInfo

Represents a single refactoring action - for example, the "Extract Method..." refactor might offer several actions, each corresponding to a surround class or closure to extract into.

Link copied to clipboard
sealed external interface RefactorEditInfo

A set of edits to make in response to a refactor action, plus an optional location where renaming should be invoked from

Link copied to clipboard
sealed external interface RefactorTriggerReason
Link copied to clipboard
sealed external interface ReferencedSymbol
Link copied to clipboard
Link copied to clipboard
sealed external interface ReferencedSymbolEntry : ReferenceEntry
Link copied to clipboard
sealed external interface ReferenceEntry : DocumentSpan
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
sealed external interface RenameInfo
Link copied to clipboard
sealed external interface RenameInfoFailure : RenameInfo
Link copied to clipboard
sealed external interface RenameInfoOptions
Link copied to clipboard
sealed external interface RenameInfoSuccess : RenameInfo
Link copied to clipboard
sealed external interface RenameLocation : DocumentSpan
Link copied to clipboard
typealias ReportEmitErrorSummary = (errorCount: Double, filesInError: ReadonlyArray<ReportFileInError?>) -> Unit
Link copied to clipboard
sealed external interface ReportFileInError
Link copied to clipboard
sealed external interface RequiredAffectedFileResult<T>
Link copied to clipboard
sealed external interface RequiredAffectedFileResultAffected
Link copied to clipboard
typealias ResolutionMode = Any?
Link copied to clipboard

Branded string for keeping track of when we've turned an ambiguous path specified like "./blah" to an absolute path to an actual tsconfig file, e.g. "/root/blah/tsconfig.json"

Link copied to clipboard
sealed external interface ResolvedModule

Represents the result of module resolution. Module resolution will pick up tsx/jsx/js files even if '--jsx' and '--allowJs' are turned off. The Program will then filter results based on these flags.

Link copied to clipboard
sealed external interface ResolvedModuleFull : ResolvedModule

ResolvedModule with an explicitly provided extension property. Prefer this over ResolvedModule. If changing this, remember to change moduleResolutionIsEqualTo.

Link copied to clipboard
sealed external interface ResolvedModuleWithFailedLookupLocations
Link copied to clipboard
sealed external interface ResolvedProjectReference
Link copied to clipboard
sealed external interface ResolvedTypeReferenceDirective
Link copied to clipboard
sealed external interface RestTypeNode : TypeNode
Link copied to clipboard
sealed external interface ReturnStatement : Statement, FlowContainer, HasJSDoc
Link copied to clipboard
sealed external interface SatisfiesExpression : Expression
Link copied to clipboard
sealed external interface Scanner
Link copied to clipboard
sealed external interface ScopedEmitHelper : EmitHelperBase, EmitHelper
Link copied to clipboard
sealed external interface ScriptElementKind
Link copied to clipboard
sealed external interface ScriptElementKindModifier
Link copied to clipboard
sealed external interface ScriptKind
Link copied to clipboard
sealed external interface ScriptReferenceHost
Link copied to clipboard
external object ScriptSnapshot
Link copied to clipboard
sealed external interface ScriptTarget
Link copied to clipboard
sealed external interface SelectionRange
Link copied to clipboard
sealed external interface SemanticClassificationFormat
Link copied to clipboard

The builder that caches the semantic diagnostics for the program and handles the changed files and affected files

Link copied to clipboard

For when we encounter a semicolon in a class declaration. ES6 allows these as class elements.

Link copied to clipboard
sealed external interface SemicolonPreference
Link copied to clipboard
sealed external interface SetAccessorDeclarationParent : Node
Link copied to clipboard
sealed external interface ShiftOperator : SyntaxKind, ShiftOperatorOrHigher
Link copied to clipboard
Link copied to clipboard
sealed external interface Signature
Link copied to clipboard
Link copied to clipboard
sealed external interface SignatureDeclarationField : Node
Link copied to clipboard

Signals that the signature help request came from a user typing a character. Depending on the character and the syntactic context, the request may or may not be served a result.

Link copied to clipboard

Signals that the user manually requested signature help. The language service will unconditionally attempt to provide a result.

Link copied to clipboard
sealed external interface SignatureHelpItem

Represents a single signature to show in signature help. The id is used for subsequent calls into the language service to ask questions about the signature help item in the context of any documents that have been updated. i.e. after an edit has happened, while signature help is still active, the host can ask important questions like 'what parameter is the user currently contained within?'.

Link copied to clipboard
sealed external interface SignatureHelpItems

Represents a set of signature help items, and the preferred item that should be selected.

Link copied to clipboard
sealed external interface SignatureHelpItemsOptions
Link copied to clipboard
sealed external interface SignatureHelpParameter
Link copied to clipboard

Signals that this signature help request came from typing a character or moving the cursor. This should only occur if a signature help session was already active and the editor needs to see if it should adjust. The language service will unconditionally attempt to provide a result. triggerCharacter can be undefined for a retrigger caused by a cursor move.

Link copied to clipboard
sealed external interface SignatureHelpTriggerReason
Link copied to clipboard
sealed external interface SignatureKind
Link copied to clipboard
sealed external interface SolutionBuilder<T : BuilderProgram>
Link copied to clipboard
Link copied to clipboard
sealed external interface SolutionBuilderHostBase<T : BuilderProgram> : ProgramHost<T>
Link copied to clipboard
sealed external interface SortedArray<T> : ReadonlyArrayAdapter<T>
Link copied to clipboard
sealed external interface SortedReadonlyArray<T> : ReadonlyArrayAdapter<T>
Link copied to clipboard
sealed external interface SourceFileLike

Subset of properties from SourceFile that are used in multiple utility functions

Link copied to clipboard
sealed external interface SourceMapRange : TextRange
Link copied to clipboard
sealed external interface SourceMapSource
Link copied to clipboard
sealed external interface SourceMapSpan
Link copied to clipboard
Link copied to clipboard
sealed external interface SpreadElementParent : Node
Link copied to clipboard
sealed external interface Statement : Node, JSDocContainer
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
sealed external interface StringLiteralType : LiteralType
Link copied to clipboard
sealed external interface StringMappingType : InstantiableType
Link copied to clipboard
sealed external interface StructuredType
Link copied to clipboard
sealed external interface SubstitutionType : InstantiableType
Link copied to clipboard
sealed external interface SuperCall : CallExpression
Link copied to clipboard
sealed external interface SuperExpression : PrimaryExpression, FlowContainer
Link copied to clipboard
sealed external interface SuperProperty : Node
Link copied to clipboard
sealed external interface SwitchStatement : Statement, FlowContainer, HasJSDoc
Link copied to clipboard
sealed external interface Symbol
Link copied to clipboard
sealed external interface SymbolDisplayPart
Link copied to clipboard
sealed external interface SymbolDisplayPartKind
Link copied to clipboard
sealed external interface SymbolFlags
Link copied to clipboard
sealed external interface SymbolFormatFlags
Link copied to clipboard

SymbolTable based on ES6 Map interface.

Link copied to clipboard
sealed external interface SyntaxKind
Link copied to clipboard
sealed external interface SyntaxList : Node
Link copied to clipboard
sealed external interface SynthesizedComment : CommentRange
Link copied to clipboard
sealed external interface SyntheticExpression : Expression
Link copied to clipboard
sealed external interface SyntheticExpressionTupleNameSource : Node
Link copied to clipboard
sealed external interface System
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
sealed external interface TemplateHeadParent : Node
Link copied to clipboard
sealed external interface TemplateLiteral : Node
Link copied to clipboard
sealed external interface TemplateLiteralLikeNode : LiteralLikeNode
Link copied to clipboard
Link copied to clipboard
sealed external interface TemplateLiteralType : InstantiableType
Link copied to clipboard
Link copied to clipboard
sealed external interface TemplateLiteralTypeSpanLiteral : Node
Link copied to clipboard
sealed external interface TemplateMiddleParent : Node
Link copied to clipboard
Link copied to clipboard
sealed external interface TemplateSpanLiteral : Node
Link copied to clipboard
sealed external interface TemplateTailParent : Node
Link copied to clipboard
sealed external interface TextChange
Link copied to clipboard
sealed external interface TextChangeRange
Link copied to clipboard
sealed external interface TextInsertion
Link copied to clipboard
sealed external interface TextRange
Link copied to clipboard
sealed external interface TextSpan
Link copied to clipboard
Link copied to clipboard
sealed external interface ThrowStatement : Statement, FlowContainer, HasJSDoc
Link copied to clipboard
sealed external interface TodoComment
Link copied to clipboard
sealed external interface TodoCommentDescriptor
Link copied to clipboard
sealed external interface Token<out TKind : SyntaxKind> : Node
Link copied to clipboard
sealed external interface TokenClass
Link copied to clipboard
sealed external interface TokenFlags
Link copied to clipboard
sealed external interface TokenSyntaxKind : SyntaxKind
Link copied to clipboard
Link copied to clipboard
sealed external interface TransformationResult<T : Node>
Link copied to clipboard
typealias Transformer<T> = (node: T) -> T

A function that transforms a node.

Link copied to clipboard

A function that is used to initialize and return a Transformer callback, which in turn will be used to transform one or more nodes.

Link copied to clipboard
sealed external interface TransientIdentifier : Identifier
Link copied to clipboard
sealed external interface TranspileOptions
Link copied to clipboard
sealed external interface TranspileOutput
Link copied to clipboard
sealed external interface TriviaSyntaxKind : SyntaxKind, TokenSyntaxKind
Link copied to clipboard
sealed external interface TrueLiteral : PrimaryExpression, BooleanLiteral
Link copied to clipboard
sealed external interface TryStatement : Statement, FlowContainer, HasJSDoc
Link copied to clipboard
sealed external interface TsConfigSourceFile : JsonSourceFile
Link copied to clipboard
sealed external interface TupleType : GenericType
Link copied to clipboard
sealed external interface TupleTypeNode : TypeNode, TypeReferenceNodeField
Link copied to clipboard
sealed external interface TupleTypeNodeElementsItem : Node
Link copied to clipboard
sealed external interface TupleTypeReference : TypeReference
Link copied to clipboard
sealed external interface Type : FlowType
Link copied to clipboard
sealed external interface TypeAcquisition
Link copied to clipboard
Link copied to clipboard
sealed external interface TypeChecker
Link copied to clipboard
Link copied to clipboard
sealed external interface TypeFlags
Link copied to clipboard
sealed external interface TypeFormatFlags
Link copied to clipboard
sealed external interface TypeOfExpression : UnaryExpression
Link copied to clipboard
sealed external interface TypeOnlyAliasDeclaration
Link copied to clipboard
sealed external interface TypeOnlyCompatibleAliasDeclaration : Node
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
sealed external interface TypeOperatorNode : TypeNode, HasType
Link copied to clipboard
sealed external interface TypeOperatorNodeOperator : SyntaxKind
Link copied to clipboard
sealed external interface TypeParameter : InstantiableType, TypeVariable
Link copied to clipboard
sealed external interface TypeParameterDeclarationParent : Node
Link copied to clipboard
sealed external interface TypePredicate
Link copied to clipboard
sealed external interface TypePredicateBase
Link copied to clipboard
sealed external interface TypePredicateKind
Link copied to clipboard
sealed external interface TypePredicateNode : TypeNode, HasType
Link copied to clipboard
sealed external interface TypePredicateNodeParameterName : Node
Link copied to clipboard
sealed external interface TypePredicateNodeParent : Node
Link copied to clipboard
sealed external interface TypeQueryNode : NodeWithTypeArguments
Link copied to clipboard
sealed external interface TypeReference : ObjectType

Type references (ObjectFlags.Reference). When a class or interface has type parameters or a "this" type, references to the class or interface are made using type references. The typeArguments property specifies the types to substitute for the type parameters of the class or interface and optionally includes an extra element that specifies the type to substitute for "this" in the resulting instantiation. When no extra argument is present, the type reference itself is substituted for "this". The typeArguments property is undefined if the class or interface has no type parameters and the reference isn't specifying an explicit "this" argument.

Link copied to clipboard
sealed external interface TypeReferenceNodeField : Node
Link copied to clipboard
sealed external interface TypeReferenceType : Node
Link copied to clipboard
sealed external interface TypeVariable : BaseType
Link copied to clipboard
sealed external interface UnaryExpression : Expression
Link copied to clipboard
Link copied to clipboard
sealed external interface UnionOrIntersectionType : Type, IndexTypeType
Link copied to clipboard
sealed external interface UnionOrIntersectionTypeNode : Node
Link copied to clipboard
sealed external interface UnionType : UnionOrIntersectionType, StructuredType
Link copied to clipboard
Link copied to clipboard
sealed external interface UniqueESSymbolType : Type
Link copied to clipboard
sealed external interface UnparsedNode : Node
Link copied to clipboard
Link copied to clipboard
sealed external interface UnparsedPrologue : UnparsedSection, UnparsedNode
Link copied to clipboard
sealed external interface UnparsedSection : Node
Link copied to clipboard
sealed external interface UnparsedSourceText : Node, UnparsedNode
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
sealed external interface UnparsedTextLikeKind : SyntaxKind
Link copied to clipboard
sealed external interface UnscopedEmitHelper : EmitHelperBase, EmitHelper
Link copied to clipboard
Link copied to clipboard
sealed external interface UpdateExpression : UnaryExpression
Link copied to clipboard
Link copied to clipboard
sealed external interface UserPreferences
Link copied to clipboard
sealed external interface UserPreferencesOrganizeImportsCollation
Link copied to clipboard
sealed external interface UserPreferencesOrganizeImportsTypeOrder
Link copied to clipboard
sealed external interface UserPreferencesQuotePreference
Link copied to clipboard
sealed external interface ValidateLocaleAndSetLanguageSys
Link copied to clipboard
Link copied to clipboard
sealed external interface VariableDeclarationListParent : Node
Link copied to clipboard
sealed external interface VariableDeclarationParent : Node
Link copied to clipboard
sealed external interface VariableLikeDeclaration : Node
Link copied to clipboard
sealed external interface VisitEachChildNodesVisitor
Link copied to clipboard
typealias Visitor<TIn, TOut> = (node: TIn) -> VisitResult<TOut>

A function that accepts and possibly transforms a node.

Link copied to clipboard
typealias VisitResult<T> = Any
Link copied to clipboard
sealed external interface VoidExpression : UnaryExpression
Link copied to clipboard
sealed external interface WalkUpBindingElementsAndPatternsResult : Node
Link copied to clipboard
sealed external interface Watch<T>
Link copied to clipboard
sealed external interface WatchCompilerHost<T : BuilderProgram> : ProgramHost<T> , WatchHost
Link copied to clipboard

Host to create watch with config file

Host to create watch with root files and options

Link copied to clipboard
sealed external interface WatchDirectoryFlags
Link copied to clipboard
sealed external interface WatchDirectoryKind
Link copied to clipboard
sealed external interface WatchFileKind
Link copied to clipboard
sealed external interface WatchHost

Host that has watch functionality used in --watch mode

Link copied to clipboard
sealed external interface WatchOfConfigFile<T> : Watch<T>

Creates the watch what generates program using the config file

Link copied to clipboard
sealed external interface WatchOfFilesAndCompilerOptions<T> : Watch<T>

Creates the watch that generates program using the root files and compiler options

Link copied to clipboard
sealed external interface WatchOptions
Link copied to clipboard
typealias WatchStatusReporter = (diagnostic: Diagnostic, newLine: String, options: CompilerOptions, errorCount: Double?) -> Unit
Link copied to clipboard
Link copied to clipboard
sealed external interface WithMetadata<T>
Link copied to clipboard
sealed external interface WithStatement : Statement, FlowContainer, HasJSDoc
Link copied to clipboard
typealias WriteFileCallback = (fileName: String, text: String, writeByteOrderMark: Boolean, onError: (message: String) -> Unit?, sourceFiles: ReadonlyArray<SourceFile>?, data: WriteFileCallbackData?) -> Unit
Link copied to clipboard
sealed external interface WriteFileCallbackData
Link copied to clipboard
sealed external interface YieldExpression : Expression

Properties

Link copied to clipboard
external val factory: NodeFactory
Link copied to clipboard
external val servicesVersion: Any?

The version of the language service API

Link copied to clipboard
external var sys: System
Link copied to clipboard
Link copied to clipboard
external val version: String

The version of the TypeScript compiler release

Link copied to clipboard
external val versionMajorMinor: Any?

Functions

Link copied to clipboard
external fun <T : Node> addEmitHelper(node: T, helper: EmitHelper): T

Adds an EmitHelper to a node.

Link copied to clipboard
external fun <T : Node> addEmitHelpers(node: T, helpers: ReadonlyArray<EmitHelper>?): T

Add EmitHelpers to a node.

Link copied to clipboard
external fun <T : Node> addSyntheticLeadingComment(node: T, kind: SyntaxKind.MultiLineCommentTrivia, text: String, hasTrailingNewLine: Boolean = definedExternally): T
external fun <T : Node> addSyntheticLeadingComment(node: T, kind: SyntaxKind.SingleLineCommentTrivia, text: String, hasTrailingNewLine: Boolean = definedExternally): T
Link copied to clipboard
external fun <T : Node> addSyntheticTrailingComment(node: T, kind: SyntaxKind.MultiLineCommentTrivia, text: String, hasTrailingNewLine: Boolean = definedExternally): T
external fun <T : Node> addSyntheticTrailingComment(node: T, kind: SyntaxKind.SingleLineCommentTrivia, text: String, hasTrailingNewLine: Boolean = definedExternally): T
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
external fun bundlerModuleNameResolver(moduleName: String, containingFile: String, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache: ModuleResolutionCache = definedExternally, redirectedReference: ResolvedProjectReference = definedExternally): ResolvedModuleWithFailedLookupLocations
Link copied to clipboard
inline fun canHaveDecorators(node: Node): Boolean
Link copied to clipboard
external fun canHaveDecoratorsRaw(node: Node): Boolean
Link copied to clipboard
inline fun canHaveModifiers(node: Node): Boolean
Link copied to clipboard
external fun canHaveModifiersRaw(node: Node): Boolean
Link copied to clipboard
external fun classicNameResolver(moduleName: String, containingFile: String, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache: NonRelativeModuleNameResolutionCache = definedExternally, redirectedReference: ResolvedProjectReference = definedExternally): ResolvedModuleWithFailedLookupLocations

Called to merge all the changes that occurred across several versions of a script snapshot into a single change. i.e. if a user keeps making successive edits to a script we will have a text change from V1 to V2, V2 to V3, ..., Vn.

Link copied to clipboard
external fun convertCompilerOptionsFromJson(jsonOptions: Any?, basePath: String, configFileName: String = definedExternally): ConvertCompilerOptionsFromJsonResult
Link copied to clipboard
external fun convertToObject(sourceFile: JsonSourceFile, errors: ReadonlyArray<Diagnostic>): Any?

Convert the json syntax tree into the json value

Link copied to clipboard
external fun convertTypeAcquisitionFromJson(jsonOptions: Any?, basePath: String, configFileName: String = definedExternally): ConvertTypeAcquisitionFromJsonResult
Link copied to clipboard
external fun couldStartTrivia(text: String, pos: Double): Boolean
Link copied to clipboard
external fun createAbstractBuilder(newProgram: Program, host: BuilderProgramHost, oldProgram: BuilderProgram = definedExternally, configFileParsingDiagnostics: ReadonlyArray<Diagnostic> = definedExternally): BuilderProgram

Creates a builder thats just abstraction over program and can be used with watch

external fun createAbstractBuilder(rootNames: ReadonlyArray<String>?, options: CompilerOptions?, host: CompilerHost = definedExternally, oldProgram: BuilderProgram = definedExternally, configFileParsingDiagnostics: ReadonlyArray<Diagnostic> = definedExternally, projectReferences: ReadonlyArray<ProjectReference> = definedExternally): BuilderProgram
Link copied to clipboard
external fun createBuilderStatusReporter(system: System, pretty: Boolean = definedExternally): DiagnosticReporter

Create a function that reports watch status by writing to the system and handles the formating of the diagnostic

Link copied to clipboard

The classifier is used for syntactic highlighting in editors via the TSServer

Link copied to clipboard
external fun createCompilerHost(options: CompilerOptions, setParentNodes: Boolean = definedExternally): CompilerHost
Link copied to clipboard
external fun createDocumentRegistry(useCaseSensitiveFileNames: Boolean = definedExternally, currentDirectory: String = definedExternally, jsDocParsingMode: JSDocParsingMode = definedExternally): DocumentRegistry
external fun createEmitAndSemanticDiagnosticsBuilderProgram(newProgram: Program, host: BuilderProgramHost, oldProgram: EmitAndSemanticDiagnosticsBuilderProgram = definedExternally, configFileParsingDiagnostics: ReadonlyArray<Diagnostic> = definedExternally): EmitAndSemanticDiagnosticsBuilderProgram

Create the builder that can handle the changes in program and iterate through changed files to emit the those files and manage semantic diagnostics cache as well

external fun createEmitAndSemanticDiagnosticsBuilderProgram(rootNames: ReadonlyArray<String>?, options: CompilerOptions?, host: CompilerHost = definedExternally, oldProgram: EmitAndSemanticDiagnosticsBuilderProgram = definedExternally, configFileParsingDiagnostics: ReadonlyArray<Diagnostic> = definedExternally, projectReferences: ReadonlyArray<ProjectReference> = definedExternally): EmitAndSemanticDiagnosticsBuilderProgram
Link copied to clipboard
external fun createIncrementalCompilerHost(options: CompilerOptions, system: System = definedExternally): CompilerHost
Link copied to clipboard
Link copied to clipboard
external fun createInputFiles(javascriptText: String, declarationText: String): InputFiles
external fun createInputFiles(readFileText: (path: String) -> String?, javascriptPath: String, javascriptMapPath: String?, declarationPath: String, declarationMapPath: String?, buildInfoPath: String?): InputFiles
external fun createInputFiles(javascriptText: String, declarationText: String, javascriptMapPath: String?, javascriptMapText: String?, declarationMapPath: String?, declarationMapText: String?): InputFiles
Link copied to clipboard
external fun createLanguageService(host: LanguageServiceHost, documentRegistry: DocumentRegistry = definedExternally, syntaxOnlyOrLanguageServiceMode: Boolean = definedExternally): LanguageService
external fun createLanguageService(host: LanguageServiceHost, documentRegistry: DocumentRegistry = definedExternally, syntaxOnlyOrLanguageServiceMode: LanguageServiceMode = definedExternally): LanguageService
Link copied to clipboard
external fun createLanguageServiceSourceFile(fileName: String, scriptSnapshot: IScriptSnapshot, scriptTargetOrOptions: CreateSourceFileOptions, version: String, setNodeParents: Boolean, scriptKind: ScriptKind = definedExternally): SourceFile
external fun createLanguageServiceSourceFile(fileName: String, scriptSnapshot: IScriptSnapshot, scriptTargetOrOptions: ScriptTarget, version: String, setNodeParents: Boolean, scriptKind: ScriptKind = definedExternally): SourceFile
Link copied to clipboard
external fun createModuleResolutionCache(currentDirectory: String, getCanonicalFileName: (s: String) -> String, options: CompilerOptions = definedExternally, packageJsonInfoCache: PackageJsonInfoCache = definedExternally): ModuleResolutionCache
Link copied to clipboard
external fun createPrinter(printerOptions: PrinterOptions = definedExternally, handlers: PrintHandlers = definedExternally): Printer
Link copied to clipboard
external fun createProgram(createProgramOptions: CreateProgramOptions): Program
external fun createProgram(rootNames: ReadonlyArray<String>, options: CompilerOptions, host: CompilerHost = definedExternally, oldProgram: Program = definedExternally, configFileParsingDiagnostics: ReadonlyArray<Diagnostic> = definedExternally): Program

Create a new 'Program' instance. A Program is an immutable collection of 'SourceFile's and a 'CompilerOptions' that represent a compilation unit.

Link copied to clipboard
external fun createScanner(languageVersion: ScriptTarget, skipTrivia: Boolean, languageVariant: LanguageVariant = definedExternally, textInitial: String = definedExternally, onError: ErrorCallback = definedExternally, start: Double = definedExternally, length: Double = definedExternally): Scanner
Link copied to clipboard
external fun createSemanticDiagnosticsBuilderProgram(newProgram: Program, host: BuilderProgramHost, oldProgram: SemanticDiagnosticsBuilderProgram = definedExternally, configFileParsingDiagnostics: ReadonlyArray<Diagnostic> = definedExternally): SemanticDiagnosticsBuilderProgram

Create the builder to manage semantic diagnostics and cache them

external fun createSemanticDiagnosticsBuilderProgram(rootNames: ReadonlyArray<String>?, options: CompilerOptions?, host: CompilerHost = definedExternally, oldProgram: SemanticDiagnosticsBuilderProgram = definedExternally, configFileParsingDiagnostics: ReadonlyArray<Diagnostic> = definedExternally, projectReferences: ReadonlyArray<ProjectReference> = definedExternally): SemanticDiagnosticsBuilderProgram
Link copied to clipboard
Link copied to clipboard
external fun <T : BuilderProgram> createSolutionBuilderHost(system: System = definedExternally, createProgram: CreateProgram<T> = definedExternally, reportDiagnostic: DiagnosticReporter = definedExternally, reportSolutionBuilderStatus: DiagnosticReporter = definedExternally, reportErrorSummary: ReportEmitErrorSummary = definedExternally): SolutionBuilderHost<T>
Link copied to clipboard
external fun <T : BuilderProgram> createSolutionBuilderWithWatch(host: SolutionBuilderWithWatchHost<T>, rootNames: ReadonlyArray<String>, defaultOptions: BuildOptions, baseWatchOptions: WatchOptions = definedExternally): SolutionBuilder<T>
Link copied to clipboard
external fun <T : BuilderProgram> createSolutionBuilderWithWatchHost(system: System = definedExternally, createProgram: CreateProgram<T> = definedExternally, reportDiagnostic: DiagnosticReporter = definedExternally, reportSolutionBuilderStatus: DiagnosticReporter = definedExternally, reportWatchStatus: WatchStatusReporter = definedExternally): SolutionBuilderWithWatchHost<T>
Link copied to clipboard
external fun createSourceFile(fileName: String, sourceText: String, languageVersionOrOptions: CreateSourceFileOptions, setParentNodes: Boolean = definedExternally, scriptKind: ScriptKind = definedExternally): SourceFile
external fun createSourceFile(fileName: String, sourceText: String, languageVersionOrOptions: ScriptTarget, setParentNodes: Boolean = definedExternally, scriptKind: ScriptKind = definedExternally): SourceFile
Link copied to clipboard
external fun createSourceMapSource(fileName: String, text: String, skipTrivia: (pos: Double) -> Double = definedExternally): SourceMapSource

Create an external source map source file reference

Link copied to clipboard
external fun createTextChangeRange(span: TextSpan, newLength: Double): TextChangeRange
Link copied to clipboard
external fun createTextSpan(start: Double, length: Double): TextSpan
Link copied to clipboard
external fun createTextSpanFromBounds(start: Double, end: Double): TextSpan
external fun createTypeReferenceDirectiveResolutionCache(currentDirectory: String, getCanonicalFileName: (s: String) -> String, options: CompilerOptions = definedExternally, packageJsonInfoCache: PackageJsonInfoCache = definedExternally): TypeReferenceDirectiveResolutionCache
Link copied to clipboard
external fun createUnparsedSourceFile(text: String, mapPath: String?, map: String?): UnparsedSource
external fun createUnparsedSourceFile(inputFile: InputFiles, type: CreateUnparsedSourceFileType, stripInternal: Boolean = definedExternally): UnparsedSource
Link copied to clipboard
external fun <T : BuilderProgram> createWatchCompilerHost(rootFiles: ReadonlyArray<String>, options: CompilerOptions, system: System, createProgram: CreateProgram<T> = definedExternally, reportDiagnostic: DiagnosticReporter = definedExternally, reportWatchStatus: WatchStatusReporter = definedExternally, projectReferences: ReadonlyArray<ProjectReference> = definedExternally, watchOptions: WatchOptions = definedExternally): WatchCompilerHostOfFilesAndCompilerOptions<T>

external fun <T : BuilderProgram> createWatchCompilerHost(configFileName: String, optionsToExtend: CompilerOptions?, system: System, createProgram: CreateProgram<T> = definedExternally, reportDiagnostic: DiagnosticReporter = definedExternally, reportWatchStatus: WatchStatusReporter = definedExternally, watchOptionsToExtend: WatchOptions = definedExternally, extraFileExtensions: ReadonlyArray<FileExtensionInfo> = definedExternally): WatchCompilerHostOfConfigFile<T>

Create the watch compiler host for either configFile or fileNames and its options

Link copied to clipboard

Creates the watch from the host for config file

Creates the watch from the host for root files and compiler options

Link copied to clipboard
external fun decodedTextSpanIntersectsWith(start1: Double, length1: Double, start2: Double, length2: Double): Boolean
Link copied to clipboard
Link copied to clipboard
external fun disposeEmitNodes(sourceFile: SourceFile?)

Clears any EmitNode entries from parse-tree nodes.

Link copied to clipboard
external fun escapeLeadingUnderscores(identifier: String): __String

Add an extra underscore to identifiers that start with two underscores to avoid issues with magic names like 'proto'

Link copied to clipboard
external fun findAncestor(node: Node?, callback: (element: Node) -> Any): Node?

external fun <T : Node> findAncestor(node: Node?, callback: (element: Node) -> Boolean): T?

Iterates through the parent chain of a node and performs the callback on each parent until the callback returns a truthy value, then returns that value. If no such value is found, it applies the callback until the parent pointer is undefined or the callback returns "quit" At that point findAncestor returns undefined.

Link copied to clipboard
external fun findConfigFile(searchPath: String, fileExists: (fileName: String) -> Boolean, configName: String = definedExternally): String?
Link copied to clipboard
external fun flattenDiagnosticMessageText(diag: String?, newLine: String, indent: Double = definedExternally): String
external fun flattenDiagnosticMessageText(diag: DiagnosticMessageChain?, newLine: String, indent: Double = definedExternally): String
Link copied to clipboard
external fun <T> forEachChild(node: Node, cbNode: (node: Node) -> T?, cbNodes: (nodes: NodeArray<Node>) -> T? = definedExternally): T?

Invokes a callback for each child of the given node. The 'cbNode' callback is invoked for all child nodes stored in properties. If a 'cbNodes' callback is specified, it is invoked for embedded arrays; otherwise, embedded arrays are flattened and the 'cbNode' callback is invoked for each element. If a callback returns a truthy value, iteration stops and that value is returned. Otherwise, undefined is returned.

Link copied to clipboard
external fun <U> forEachLeadingCommentRange(text: String, pos: Double, cb: (pos: Double, end: Double, kind: CommentKind, hasTrailingNewLine: Boolean) -> U): U?
external fun <T, U> forEachLeadingCommentRange(text: String, pos: Double, cb: (pos: Double, end: Double, kind: CommentKind, hasTrailingNewLine: Boolean, state: T) -> U, state: T): U?
Link copied to clipboard
external fun <U> forEachTrailingCommentRange(text: String, pos: Double, cb: (pos: Double, end: Double, kind: CommentKind, hasTrailingNewLine: Boolean) -> U): U?
external fun <T, U> forEachTrailingCommentRange(text: String, pos: Double, cb: (pos: Double, end: Double, kind: CommentKind, hasTrailingNewLine: Boolean, state: T) -> U, state: T): U?
Link copied to clipboard
external fun formatDiagnostic(diagnostic: Diagnostic, host: FormatDiagnosticsHost): String
Link copied to clipboard
Link copied to clipboard
external fun <T : JSDocTag> getAllJSDocTags(node: Node, predicate: (tag: JSDocTag) -> Boolean): ReadonlyArray<T>

Gets all JSDoc tags that match a specified predicate

Link copied to clipboard

Gets all JSDoc tags of a specified kind

Link copied to clipboard

Given a set of options, returns the set of type directive names that should be included for this program automatically. This list could either come from the config file, or from enumerating the types root + initial secondary types lookup location. More type directives might appear in the program later as a result of loading actual source files; this list is only the set of defaults that are implicitly included.

Link copied to clipboard
Link copied to clipboard
external fun getCombinedNodeFlags(node: Node): NodeFlags
Link copied to clipboard
external fun getCommentRange(node: Node): TextRange

Gets a custom text range to use when emitting comments.

Link copied to clipboard
Link copied to clipboard
external fun getConstantValue(node: AccessExpression): Any?

Gets the constant value to emit for an expression representing an enum.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
external fun getDefaultFormatCodeSettings(newLineCharacter: String = definedExternally): FormatCodeSettings
Link copied to clipboard
Link copied to clipboard

Get the path of the default library files (lib.d.ts) as distributed with the typescript node package. The functionality is not supported if the ts module is consumed outside of a node module.

Link copied to clipboard

Gets the effective type parameters. If the node was parsed in a JavaScript file, gets the type parameters from the @template tag from JSDoc.

Link copied to clipboard

Gets the EmitHelpers of a node.

Link copied to clipboard
external fun getImpliedNodeFormatForFile(fileName: String, packageJsonInfoCache: PackageJsonInfoCache?, host: ModuleResolutionHost, options: CompilerOptions): ResolutionMode

A function for determining if a given file is esm or cjs format, assuming modern node module resolution rules, as configured by the options parameter.

Link copied to clipboard

Gets the JSDoc augments tag for the node if present

Link copied to clipboard
external fun getJSDocClassTag(node: Node): JSDocClassTag?

Gets the JSDoc class tag for the node if present

Link copied to clipboard

This function checks multiple locations for JSDoc comments that apply to a host node. At each location, the whole comment may apply to the node, or only a specific tag in the comment. In the first case, location adds the entire {@link JSDoc} object. In the second case, it adds the applicable {@link JSDocTag}.

Link copied to clipboard

Gets the JSDoc deprecated tag for the node if present

Link copied to clipboard
external fun getJSDocEnumTag(node: Node): JSDocEnumTag?

Gets the JSDoc enum tag for the node if present

Link copied to clipboard

Gets the JSDoc implements tags for the node if present

Link copied to clipboard
Link copied to clipboard

Gets the JSDoc parameter tags for the node if present.

Link copied to clipboard

Gets the JSDoc private tag for the node if present

Link copied to clipboard

Gets the JSDoc protected tag for the node if present

Link copied to clipboard
external fun getJSDocPublicTag(node: Node): JSDocPublicTag?

Gets the JSDoc public tag for the node if present

Link copied to clipboard

Gets the JSDoc protected tag for the node if present

Link copied to clipboard
external fun getJSDocReturnTag(node: Node): JSDocReturnTag?

Gets the JSDoc return tag for the node if present

Link copied to clipboard
external fun getJSDocReturnType(node: Node): TypeNode?

Gets the return type node for the node if provided via JSDoc return tag or type tag.

Link copied to clipboard
Link copied to clipboard
external fun getJSDocTags(node: Node): ReadonlyArray<JSDocTag>

Get all JSDoc tags related to a node, including those on parent nodes.

Link copied to clipboard

Gets the JSDoc template tag for the node if present

Link copied to clipboard
external fun getJSDocThisTag(node: Node): JSDocThisTag?

Gets the JSDoc this tag for the node if present

Link copied to clipboard
external fun getJSDocType(node: Node): TypeNode?

Gets the type node for the node if provided via JSDoc.

Link copied to clipboard

Gets the JSDoc type parameter tags for the node if present.

Link copied to clipboard
external fun getJSDocTypeTag(node: Node): JSDocTypeTag?

Gets the JSDoc type tag for the node if present and valid

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
external fun getModeForFileReference(ref: String, containingFileMode: ResolutionMode): ResolutionMode
external fun getModeForFileReference(ref: FileReference, containingFileMode: ResolutionMode): ResolutionMode

Calculates the resulting resolution mode for some reference in some file - this is generally the explicitly provided resolution mode in the reference, unless one is not present, in which case it is the mode of the containing file.

Link copied to clipboard
external fun getModeForResolutionAtIndex(file: SourceFile, index: Double, compilerOptions: CompilerOptions): ResolutionMode

Use program.getModeForResolutionAtIndex, which retrieves the correct compilerOptions, instead of this function whenever possible. Calculates the final resolution mode for an import at some index within a file's imports list. This is the resolution mode explicitly provided via import attributes, if present, or the syntax the usage would have if emitted to JavaScript. In --module node16 or nodenext, this may depend on the file's impliedNodeFormat. In --module preserve, it depends only on the input syntax of the reference. In other module modes, when overriding import attributes are not provided, this function returns undefined, as the result would have no impact on module resolution, emit, or type checking.

Link copied to clipboard

Use program.getModeForUsageLocation, which retrieves the correct compilerOptions, instead of this function whenever possible. Calculates the final resolution mode for a given module reference node. This is the resolution mode explicitly provided via import attributes, if present, or the syntax the usage would have if emitted to JavaScript. In --module node16 or nodenext, this may depend on the file's impliedNodeFormat. In --module preserve, it depends only on the input syntax of the reference. In other module modes, when overriding import attributes are not provided, this function returns undefined, as the result would have no impact on module resolution, emit, or type checking.

Link copied to clipboard
Link copied to clipboard
external fun getNameOfDeclaration(declaration: Declaration?): DeclarationName?
external fun getNameOfDeclaration(declaration: Expression?): DeclarationName?
Link copied to clipboard
external fun getNameOfJSDocTypedef(declaration: JSDocTypedefTag): Any?
Link copied to clipboard
external fun getOriginalNode(node: Node): Node
external fun getOriginalNode(node: Node?): Node?
external fun <T : Node> getOriginalNode(node: Node, nodeTest: (node: Node) -> Boolean): T
external fun <T : Node> getOriginalNode(node: Node?, nodeTest: (node: Node) -> Boolean): T?
Link copied to clipboard
external fun getOutputFileNames(commandLine: ParsedCommandLine, inputFileName: String, ignoreCase: Boolean): ReadonlyArray<String>
Link copied to clipboard
external fun getParsedCommandLineOfConfigFile(configFileName: String, optionsToExtend: CompilerOptions?, host: ParseConfigFileHost, extendedConfigCache: ReadonlyMap<String, ExtendedConfigCacheEntry> = definedExternally, watchOptionsToExtend: WatchOptions = definedExternally, extraFileExtensions: ReadonlyArray<FileExtensionInfo> = definedExternally): ParsedCommandLine?

Reads the config file, reports errors if any and exits if the config file cannot be found

Link copied to clipboard
external fun getParseTreeNode(node: Node?): Node?
external fun <T : Node> getParseTreeNode(node: T?, nodeTest: (node: Node) -> Boolean = definedExternally): T?

Gets the original parse tree node for a node.

Link copied to clipboard
external fun getPositionOfLineAndCharacter(sourceFile: SourceFileLike, line: Double, character: Double): Double
Link copied to clipboard
external fun getPreEmitDiagnostics(program: Program, sourceFile: SourceFile = definedExternally, cancellationToken: CancellationToken = definedExternally): ReadonlyArray<Diagnostic>
Link copied to clipboard
external fun getShebang(text: String): String?

Optionally, get the shebang

Link copied to clipboard

Gets a custom text range to use when emitting source maps.

Link copied to clipboard
Link copied to clipboard
external fun getTextOfJSDocComment(): String?
external fun getTextOfJSDocComment(comment: String = definedExternally): String?
external fun getTextOfJSDocComment(comment: NodeArray<JSDocComment> = definedExternally): String?

Gets the text of a jsdoc comment, flattening links to their text.

Link copied to clipboard

Gets the TextRange to use for source maps for a token of a node.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Return true if the node has JSDoc parameter tags.

Link copied to clipboard
Link copied to clipboard

True if has initializer node attached to it.

Link copied to clipboard
Link copied to clipboard

If the text of an Identifier matches a keyword (including contextual and TypeScript-specific keywords), returns the SyntaxKind for the matching keyword.

Link copied to clipboard
external fun idText(identifierOrPrivateName: Identifier): String
external fun idText(identifierOrPrivateName: PrivateIdentifier): String
Link copied to clipboard
inline fun isAccessor(node: Node): Boolean
Link copied to clipboard
external fun isAccessorRaw(node: Node): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun isArrayTypeNode(node: Node): Boolean
Link copied to clipboard
external fun isArrayTypeNodeRaw(node: Node): Boolean
Link copied to clipboard
inline fun isArrowFunction(node: Node): Boolean
Link copied to clipboard
external fun isArrowFunctionRaw(node: Node): Boolean
Link copied to clipboard
inline fun isAsExpression(node: Node): Boolean
Link copied to clipboard
external fun isAsExpressionRaw(node: Node): Boolean
Link copied to clipboard
inline fun isAssertClause(node: Node): Boolean
Link copied to clipboard
external fun isAssertClauseRaw(node: Node): Boolean
Link copied to clipboard
inline fun isAssertEntry(node: Node): Boolean
Link copied to clipboard
external fun isAssertEntryRaw(node: Node): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun isAssertsKeyword(node: Node): Boolean
Link copied to clipboard
external fun isAssertsKeywordRaw(node: Node): Boolean
Link copied to clipboard
inline fun isAsteriskToken(node: Node): Boolean
Link copied to clipboard
external fun isAsteriskTokenRaw(node: Node): Boolean
Link copied to clipboard
inline fun isAwaitExpression(node: Node): Boolean
Link copied to clipboard
external fun isAwaitExpressionRaw(node: Node): Boolean
Link copied to clipboard
inline fun isAwaitKeyword(node: Node): Boolean
Link copied to clipboard
external fun isAwaitKeywordRaw(node: Node): Boolean
Link copied to clipboard
inline fun isBigIntLiteral(node: Node): Boolean
Link copied to clipboard
external fun isBigIntLiteralRaw(node: Node): Boolean
Link copied to clipboard
inline fun isBinaryExpression(node: Node): Boolean
Link copied to clipboard
external fun isBinaryExpressionRaw(node: Node): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun isBindingElement(node: Node): Boolean
Link copied to clipboard
external fun isBindingElementRaw(node: Node): Boolean
Link copied to clipboard
inline fun isBindingName(node: Node): Boolean
Link copied to clipboard
external fun isBindingNameRaw(node: Node): Boolean
Link copied to clipboard
inline fun isBlock(node: Node): Boolean
Link copied to clipboard
external fun isBlockRaw(node: Node): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun isBreakStatement(node: Node): Boolean
Link copied to clipboard
external fun isBreakStatementRaw(node: Node): Boolean
Link copied to clipboard
inline fun isBundle(node: Node): Boolean
Link copied to clipboard
external fun isBundleRaw(node: Node): Boolean
Link copied to clipboard
inline fun isCallChain(node: Node): Boolean
Link copied to clipboard
external fun isCallChainRaw(node: Node): Boolean
Link copied to clipboard
inline fun isCallExpression(node: Node): Boolean
Link copied to clipboard
external fun isCallExpressionRaw(node: Node): Boolean
Link copied to clipboard
inline fun isCallLikeExpression(node: Node): Boolean
Link copied to clipboard
external fun isCallLikeExpressionRaw(node: Node): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun isCaseBlock(node: Node): Boolean
Link copied to clipboard
external fun isCaseBlockRaw(node: Node): Boolean
Link copied to clipboard
inline fun isCaseClause(node: Node): Boolean
Link copied to clipboard
external fun isCaseClauseRaw(node: Node): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun isCatchClause(node: Node): Boolean
Link copied to clipboard
external fun isCatchClauseRaw(node: Node): Boolean
Link copied to clipboard
inline fun isClassDeclaration(node: Node): Boolean
Link copied to clipboard
external fun isClassDeclarationRaw(node: Node): Boolean
Link copied to clipboard
inline fun isClassElement(node: Node): Boolean
Link copied to clipboard
external fun isClassElementRaw(node: Node): Boolean
Link copied to clipboard
inline fun isClassExpression(node: Node): Boolean
Link copied to clipboard
external fun isClassExpressionRaw(node: Node): Boolean
Link copied to clipboard
inline fun isClassLike(node: Node): Boolean
Link copied to clipboard
external fun isClassLikeRaw(node: Node): Boolean
Link copied to clipboard
inline fun isClassOrTypeElement(node: Node): Boolean
Link copied to clipboard
external fun isClassOrTypeElementRaw(node: Node): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun isColonToken(node: Node): Boolean
Link copied to clipboard
external fun isColonTokenRaw(node: Node): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun isConciseBody(node: Node): Boolean
Link copied to clipboard
external fun isConciseBodyRaw(node: Node): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
external fun isConstTypeReference(node: Node): Boolean
Link copied to clipboard
inline fun isContinueStatement(node: Node): Boolean
Link copied to clipboard
external fun isContinueStatementRaw(node: Node): Boolean
Link copied to clipboard
inline fun isDebuggerStatement(node: Node): Boolean
Link copied to clipboard
external fun isDebuggerStatementRaw(node: Node): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun isDecorator(node: Node): Boolean
Link copied to clipboard
external fun isDecoratorRaw(node: Node): Boolean
Link copied to clipboard
inline fun isDefaultClause(node: Node): Boolean
Link copied to clipboard
external fun isDefaultClauseRaw(node: Node): Boolean
Link copied to clipboard
inline fun isDeleteExpression(node: Node): Boolean
Link copied to clipboard
external fun isDeleteExpressionRaw(node: Node): Boolean
Link copied to clipboard
inline fun isDoStatement(node: Node): Boolean
Link copied to clipboard
external fun isDoStatementRaw(node: Node): Boolean
Link copied to clipboard
inline fun isDotDotDotToken(node: Node): Boolean
Link copied to clipboard
external fun isDotDotDotTokenRaw(node: Node): Boolean
Link copied to clipboard
inline fun isElementAccessChain(node: Node): Boolean
Link copied to clipboard
external fun isElementAccessChainRaw(node: Node): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun isEmptyStatement(node: Node): Boolean
Link copied to clipboard
external fun isEmptyStatementRaw(node: Node): Boolean
Link copied to clipboard
inline fun isEntityName(node: Node): Boolean
Link copied to clipboard
external fun isEntityNameRaw(node: Node): Boolean
Link copied to clipboard
inline fun isEnumDeclaration(node: Node): Boolean
Link copied to clipboard
external fun isEnumDeclarationRaw(node: Node): Boolean
Link copied to clipboard
inline fun isEnumMember(node: Node): Boolean
Link copied to clipboard
external fun isEnumMemberRaw(node: Node): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun isExclamationToken(node: Node): Boolean
Link copied to clipboard
external fun isExclamationTokenRaw(node: Node): Boolean
Link copied to clipboard
inline fun isExportAssignment(node: Node): Boolean
Link copied to clipboard
external fun isExportAssignmentRaw(node: Node): Boolean
Link copied to clipboard
inline fun isExportDeclaration(node: Node): Boolean
Link copied to clipboard
external fun isExportDeclarationRaw(node: Node): Boolean
Link copied to clipboard
inline fun isExportSpecifier(node: Node): Boolean
Link copied to clipboard
external fun isExportSpecifierRaw(node: Node): Boolean
Link copied to clipboard
inline fun isExpression(node: Node): Boolean
Link copied to clipboard
external fun isExpressionRaw(node: Node): Boolean

Determines whether a node is an expression based only on its kind.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
external fun isExternalModule(file: SourceFile): Boolean
Link copied to clipboard
external fun isExternalModuleNameRelative(moduleName: String): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun isForInitializer(node: Node): Boolean
Link copied to clipboard
external fun isForInitializerRaw(node: Node): Boolean
Link copied to clipboard
inline fun isForInStatement(node: Node): Boolean
Link copied to clipboard
external fun isForInStatementRaw(node: Node): Boolean
Link copied to clipboard
inline fun isForOfStatement(node: Node): Boolean
Link copied to clipboard
external fun isForOfStatementRaw(node: Node): Boolean
Link copied to clipboard
inline fun isForStatement(node: Node): Boolean
Link copied to clipboard
external fun isForStatementRaw(node: Node): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun isFunctionExpression(node: Node): Boolean
Link copied to clipboard
external fun isFunctionExpressionRaw(node: Node): Boolean
Link copied to clipboard
inline fun isFunctionLike(node: Node?): Boolean
Link copied to clipboard
external fun isFunctionLikeRaw(node: Node?): Boolean
Link copied to clipboard
Link copied to clipboard
inline fun isFunctionTypeNode(node: Node): Boolean
Link copied to clipboard
external fun isFunctionTypeNodeRaw(node: Node): Boolean
Link copied to clipboard
inline fun isGetAccessor(node: Node): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
external fun isGetAccessorRaw(node: Node): Boolean
Link copied to clipboard
inline fun isHeritageClause(node: Node): Boolean
Link copied to clipboard
external fun isHeritageClauseRaw(node: Node): Boolean
Link copied to clipboard
inline fun isIdentifier(node: Node): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
external fun isIdentifierPart(ch: Double, languageVersion: ScriptTarget?, identifierVariant: LanguageVariant = definedExternally): Boolean
Link copied to clipboard
external fun isIdentifierRaw(node: Node): Boolean
Link copied to clipboard
external fun isIdentifierStart(ch: Double, languageVersion: ScriptTarget?): Boolean
Link copied to clipboard
inline fun isIfStatement(node: Node): Boolean
Link copied to clipboard
external fun isIfStatementRaw(node: Node): Boolean
Link copied to clipboard
inline fun isImportAttribute(node: Node): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
external fun isImportAttributeRaw(node: Node): Boolean
Link copied to clipboard
inline fun isImportAttributes(node: Node): Boolean
Link copied to clipboard
external fun isImportAttributesRaw(node: Node): Boolean
Link copied to clipboard
inline fun isImportClause(node: Node): Boolean
Link copied to clipboard
external fun isImportClauseRaw(node: Node): Boolean
Link copied to clipboard
inline fun isImportDeclaration(node: Node): Boolean
Link copied to clipboard
external fun isImportDeclarationRaw(node: Node): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun isImportSpecifier(node: Node): Boolean
Link copied to clipboard
external fun isImportSpecifierRaw(node: Node): Boolean
Link copied to clipboard
Link copied to clipboard
inline fun isImportTypeNode(node: Node): Boolean
Link copied to clipboard
external fun isImportTypeNodeRaw(node: Node): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun isInferTypeNode(node: Node): Boolean
Link copied to clipboard
external fun isInferTypeNodeRaw(node: Node): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
external fun isInternalDeclaration(node: Node, sourceFile: SourceFile = definedExternally): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun isIterationStatement(node: Node, lookInLabeledStatements: Boolean): Boolean
Link copied to clipboard
external fun isIterationStatementRaw(node: Node, lookInLabeledStatements: Boolean): Boolean
Link copied to clipboard
inline fun isJSDoc(node: Node): Boolean
Link copied to clipboard
inline fun isJSDocAllType(node: Node): Boolean
Link copied to clipboard
external fun isJSDocAllTypeRaw(node: Node): Boolean
Link copied to clipboard
inline fun isJSDocAugmentsTag(node: Node): Boolean
Link copied to clipboard
external fun isJSDocAugmentsTagRaw(node: Node): Boolean
Link copied to clipboard
inline fun isJSDocAuthorTag(node: Node): Boolean
Link copied to clipboard
external fun isJSDocAuthorTagRaw(node: Node): Boolean
Link copied to clipboard
inline fun isJSDocCallbackTag(node: Node): Boolean
Link copied to clipboard
external fun isJSDocCallbackTagRaw(node: Node): Boolean
Link copied to clipboard
inline fun isJSDocClassTag(node: Node): Boolean
Link copied to clipboard
external fun isJSDocClassTagRaw(node: Node): Boolean
Link copied to clipboard

True if node is of a kind that may contain comment text.

Link copied to clipboard
inline fun isJSDocDeprecatedTag(node: Node): Boolean
Link copied to clipboard
external fun isJSDocDeprecatedTagRaw(node: Node): Boolean
Link copied to clipboard
inline fun isJSDocEnumTag(node: Node): Boolean
Link copied to clipboard
external fun isJSDocEnumTagRaw(node: Node): Boolean
Link copied to clipboard
inline fun isJSDocFunctionType(node: Node): Boolean
Link copied to clipboard
external fun isJSDocFunctionTypeRaw(node: Node): Boolean
Link copied to clipboard
inline fun isJSDocImplementsTag(node: Node): Boolean
Link copied to clipboard
external fun isJSDocImplementsTagRaw(node: Node): Boolean
Link copied to clipboard
inline fun isJSDocLink(node: Node): Boolean
Link copied to clipboard
inline fun isJSDocLinkCode(node: Node): Boolean
Link copied to clipboard
external fun isJSDocLinkCodeRaw(node: Node): Boolean
Link copied to clipboard
inline fun isJSDocLinkLike(node: Node): Boolean
Link copied to clipboard
external fun isJSDocLinkLikeRaw(node: Node): Boolean
Link copied to clipboard
inline fun isJSDocLinkPlain(node: Node): Boolean
Link copied to clipboard
external fun isJSDocLinkPlainRaw(node: Node): Boolean
Link copied to clipboard
external fun isJSDocLinkRaw(node: Node): Boolean
Link copied to clipboard
inline fun isJSDocMemberName(node: Node): Boolean
Link copied to clipboard
external fun isJSDocMemberNameRaw(node: Node): Boolean
Link copied to clipboard
inline fun isJSDocNamepathType(node: Node): Boolean
Link copied to clipboard
external fun isJSDocNamepathTypeRaw(node: Node): Boolean
Link copied to clipboard
inline fun isJSDocNameReference(node: Node): Boolean
Link copied to clipboard
external fun isJSDocNameReferenceRaw(node: Node): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun isJSDocNullableType(node: Node): Boolean
Link copied to clipboard
external fun isJSDocNullableTypeRaw(node: Node): Boolean
Link copied to clipboard
inline fun isJSDocOptionalType(node: Node): Boolean
Link copied to clipboard
external fun isJSDocOptionalTypeRaw(node: Node): Boolean
Link copied to clipboard
inline fun isJSDocOverloadTag(node: Node): Boolean
Link copied to clipboard
external fun isJSDocOverloadTagRaw(node: Node): Boolean
Link copied to clipboard
inline fun isJSDocOverrideTag(node: Node): Boolean
Link copied to clipboard
external fun isJSDocOverrideTagRaw(node: Node): Boolean
Link copied to clipboard
inline fun isJSDocParameterTag(node: Node): Boolean
Link copied to clipboard
external fun isJSDocParameterTagRaw(node: Node): Boolean
Link copied to clipboard
inline fun isJSDocPrivateTag(node: Node): Boolean
Link copied to clipboard
external fun isJSDocPrivateTagRaw(node: Node): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun isJSDocPropertyTag(node: Node): Boolean
Link copied to clipboard
external fun isJSDocPropertyTagRaw(node: Node): Boolean
Link copied to clipboard
inline fun isJSDocProtectedTag(node: Node): Boolean
Link copied to clipboard
external fun isJSDocProtectedTagRaw(node: Node): Boolean
Link copied to clipboard
inline fun isJSDocPublicTag(node: Node): Boolean
Link copied to clipboard
external fun isJSDocPublicTagRaw(node: Node): Boolean
Link copied to clipboard
external fun isJSDocRaw(node: Node): Boolean
Link copied to clipboard
inline fun isJSDocReadonlyTag(node: Node): Boolean
Link copied to clipboard
external fun isJSDocReadonlyTagRaw(node: Node): Boolean
Link copied to clipboard
inline fun isJSDocReturnTag(node: Node): Boolean
Link copied to clipboard
external fun isJSDocReturnTagRaw(node: Node): Boolean
Link copied to clipboard
inline fun isJSDocSatisfiesTag(node: Node): Boolean
Link copied to clipboard
external fun isJSDocSatisfiesTagRaw(node: Node): Boolean
Link copied to clipboard
inline fun isJSDocSeeTag(node: Node): Boolean
Link copied to clipboard
external fun isJSDocSeeTagRaw(node: Node): Boolean
Link copied to clipboard
inline fun isJSDocSignature(node: Node): Boolean
Link copied to clipboard
external fun isJSDocSignatureRaw(node: Node): Boolean
Link copied to clipboard
inline fun isJSDocTemplateTag(node: Node): Boolean
Link copied to clipboard
external fun isJSDocTemplateTagRaw(node: Node): Boolean
Link copied to clipboard
inline fun isJSDocThisTag(node: Node): Boolean
Link copied to clipboard
external fun isJSDocThisTagRaw(node: Node): Boolean
Link copied to clipboard
inline fun isJSDocThrowsTag(node: Node): Boolean
Link copied to clipboard
external fun isJSDocThrowsTagRaw(node: Node): Boolean
Link copied to clipboard
inline fun isJSDocTypedefTag(node: Node): Boolean
Link copied to clipboard
external fun isJSDocTypedefTagRaw(node: Node): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun isJSDocTypeLiteral(node: Node): Boolean
Link copied to clipboard
external fun isJSDocTypeLiteralRaw(node: Node): Boolean
Link copied to clipboard
inline fun isJSDocTypeTag(node: Node): Boolean
Link copied to clipboard
external fun isJSDocTypeTagRaw(node: Node): Boolean
Link copied to clipboard
inline fun isJSDocUnknownTag(node: Node): Boolean
Link copied to clipboard
external fun isJSDocUnknownTagRaw(node: Node): Boolean
Link copied to clipboard
inline fun isJSDocUnknownType(node: Node): Boolean
Link copied to clipboard
external fun isJSDocUnknownTypeRaw(node: Node): Boolean
Link copied to clipboard
inline fun isJSDocVariadicType(node: Node): Boolean
Link copied to clipboard
external fun isJSDocVariadicTypeRaw(node: Node): Boolean
Link copied to clipboard
inline fun isJsxAttribute(node: Node): Boolean
Link copied to clipboard
inline fun isJsxAttributeLike(node: Node): Boolean
Link copied to clipboard
external fun isJsxAttributeLikeRaw(node: Node): Boolean
Link copied to clipboard
external fun isJsxAttributeRaw(node: Node): Boolean
Link copied to clipboard
inline fun isJsxAttributes(node: Node): Boolean
Link copied to clipboard
external fun isJsxAttributesRaw(node: Node): Boolean
Link copied to clipboard
inline fun isJsxChild(node: Node): Boolean
Link copied to clipboard
external fun isJsxChildRaw(node: Node): Boolean
Link copied to clipboard
inline fun isJsxClosingElement(node: Node): Boolean
Link copied to clipboard
external fun isJsxClosingElementRaw(node: Node): Boolean
Link copied to clipboard
inline fun isJsxClosingFragment(node: Node): Boolean
Link copied to clipboard
external fun isJsxClosingFragmentRaw(node: Node): Boolean
Link copied to clipboard
inline fun isJsxElement(node: Node): Boolean
Link copied to clipboard
external fun isJsxElementRaw(node: Node): Boolean
Link copied to clipboard
inline fun isJsxExpression(node: Node): Boolean
Link copied to clipboard
external fun isJsxExpressionRaw(node: Node): Boolean
Link copied to clipboard
inline fun isJsxFragment(node: Node): Boolean
Link copied to clipboard
external fun isJsxFragmentRaw(node: Node): Boolean
Link copied to clipboard
inline fun isJsxNamespacedName(node: Node): Boolean
Link copied to clipboard
external fun isJsxNamespacedNameRaw(node: Node): Boolean
Link copied to clipboard
inline fun isJsxOpeningElement(node: Node): Boolean
Link copied to clipboard
external fun isJsxOpeningElementRaw(node: Node): Boolean
Link copied to clipboard
inline fun isJsxOpeningFragment(node: Node): Boolean
Link copied to clipboard
external fun isJsxOpeningFragmentRaw(node: Node): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun isJsxSpreadAttribute(node: Node): Boolean
Link copied to clipboard
external fun isJsxSpreadAttributeRaw(node: Node): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun isJsxText(node: Node): Boolean
Link copied to clipboard
external fun isJsxTextRaw(node: Node): Boolean
Link copied to clipboard
inline fun isLabeledStatement(node: Node): Boolean
Link copied to clipboard
external fun isLabeledStatementRaw(node: Node): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
external fun isLineBreak(ch: Double): Boolean
Link copied to clipboard
inline fun isLiteralExpression(node: Node): Boolean
Link copied to clipboard
external fun isLiteralExpressionRaw(node: Node): Boolean
Link copied to clipboard
inline fun isLiteralTypeLiteral(node: Node): Boolean
Link copied to clipboard
external fun isLiteralTypeLiteralRaw(node: Node): Boolean
Link copied to clipboard
inline fun isLiteralTypeNode(node: Node): Boolean
Link copied to clipboard
external fun isLiteralTypeNodeRaw(node: Node): Boolean
Link copied to clipboard
inline fun isMappedTypeNode(node: Node): Boolean
Link copied to clipboard
external fun isMappedTypeNodeRaw(node: Node): Boolean
Link copied to clipboard
inline fun isMemberName(node: Node): Boolean
Link copied to clipboard
external fun isMemberNameRaw(node: Node): Boolean
Link copied to clipboard
inline fun isMetaProperty(node: Node): Boolean
Link copied to clipboard
external fun isMetaPropertyRaw(node: Node): Boolean
Link copied to clipboard
inline fun isMethodDeclaration(node: Node): Boolean
Link copied to clipboard
external fun isMethodDeclarationRaw(node: Node): Boolean
Link copied to clipboard
inline fun isMethodSignature(node: Node): Boolean
Link copied to clipboard
external fun isMethodSignatureRaw(node: Node): Boolean
Link copied to clipboard
inline fun isMinusToken(node: Node): Boolean
Link copied to clipboard
external fun isMinusTokenRaw(node: Node): Boolean
Link copied to clipboard
inline fun isMissingDeclaration(node: Node): Boolean
Link copied to clipboard
external fun isMissingDeclarationRaw(node: Node): Boolean
Link copied to clipboard
inline fun isModifier(node: Node): Boolean
Link copied to clipboard
inline fun isModifierLike(node: Node): Boolean
Link copied to clipboard
external fun isModifierLikeRaw(node: Node): Boolean
Link copied to clipboard
external fun isModifierRaw(node: Node): Boolean
Link copied to clipboard
inline fun isModuleBlock(node: Node): Boolean
Link copied to clipboard
external fun isModuleBlockRaw(node: Node): Boolean
Link copied to clipboard
inline fun isModuleBody(node: Node): Boolean
Link copied to clipboard
external fun isModuleBodyRaw(node: Node): Boolean
Link copied to clipboard
inline fun isModuleDeclaration(node: Node): Boolean
Link copied to clipboard
external fun isModuleDeclarationRaw(node: Node): Boolean
Link copied to clipboard
inline fun isModuleName(node: Node): Boolean
Link copied to clipboard
external fun isModuleNameRaw(node: Node): Boolean
Link copied to clipboard
inline fun isModuleReference(node: Node): Boolean
Link copied to clipboard
external fun isModuleReferenceRaw(node: Node): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun isNamedExports(node: Node): Boolean
Link copied to clipboard
external fun isNamedExportsRaw(node: Node): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun isNamedImports(node: Node): Boolean
Link copied to clipboard
external fun isNamedImportsRaw(node: Node): Boolean
Link copied to clipboard
inline fun isNamedTupleMember(node: Node): Boolean
Link copied to clipboard
external fun isNamedTupleMemberRaw(node: Node): Boolean
Link copied to clipboard
inline fun isNamespaceExport(node: Node): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
external fun isNamespaceExportRaw(node: Node): Boolean
Link copied to clipboard
inline fun isNamespaceImport(node: Node): Boolean
Link copied to clipboard
external fun isNamespaceImportRaw(node: Node): Boolean
Link copied to clipboard
inline fun isNewExpression(node: Node): Boolean
Link copied to clipboard
external fun isNewExpressionRaw(node: Node): Boolean
Link copied to clipboard
inline fun isNonNullChain(node: Node): Boolean
Link copied to clipboard
external fun isNonNullChainRaw(node: Node): Boolean
Link copied to clipboard
inline fun isNonNullExpression(node: Node): Boolean
Link copied to clipboard
external fun isNonNullExpressionRaw(node: Node): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
external fun isNullishCoalesce(node: Node): Boolean
Link copied to clipboard
inline fun isNumericLiteral(node: Node): Boolean
Link copied to clipboard
external fun isNumericLiteralRaw(node: Node): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun isOmittedExpression(node: Node): Boolean
Link copied to clipboard
external fun isOmittedExpressionRaw(node: Node): Boolean
Link copied to clipboard
inline fun isOptionalChain(node: Node): Boolean
Link copied to clipboard
external fun isOptionalChainRaw(node: Node): Boolean
Link copied to clipboard
inline fun isOptionalTypeNode(node: Node): Boolean
Link copied to clipboard
external fun isOptionalTypeNodeRaw(node: Node): Boolean
Link copied to clipboard
inline fun isParameter(node: Node): Boolean
Link copied to clipboard
inline fun isParameterPropertyDeclaration(node: Node, parent: Node): Boolean
Link copied to clipboard
external fun isParameterPropertyDeclarationRaw(node: Node, parent: Node): Boolean
Link copied to clipboard
external fun isParameterRaw(node: Node): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
external fun isParseTreeNode(node: Node): Boolean

Gets a value indicating whether a node originated in the parse tree.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
external fun isPartOfTypeNode(node: Node): Boolean
Link copied to clipboard
inline fun isPlusToken(node: Node): Boolean
Link copied to clipboard
external fun isPlusTokenRaw(node: Node): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun isPrivateIdentifier(node: Node): Boolean
Link copied to clipboard
external fun isPrivateIdentifierRaw(node: Node): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun isPropertyAssignment(node: Node): Boolean
Link copied to clipboard
external fun isPropertyAssignmentRaw(node: Node): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun isPropertyName(node: Node): Boolean
Link copied to clipboard
external fun isPropertyNameRaw(node: Node): Boolean
Link copied to clipboard
inline fun isPropertySignature(node: Node): Boolean
Link copied to clipboard
external fun isPropertySignatureRaw(node: Node): Boolean
Link copied to clipboard
inline fun isQualifiedName(node: Node): Boolean
Link copied to clipboard
external fun isQualifiedNameRaw(node: Node): Boolean
Link copied to clipboard
inline fun isQuestionDotToken(node: Node): Boolean
Link copied to clipboard
external fun isQuestionDotTokenRaw(node: Node): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun isQuestionToken(node: Node): Boolean
Link copied to clipboard
external fun isQuestionTokenRaw(node: Node): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun isRestTypeNode(node: Node): Boolean
Link copied to clipboard
external fun isRestTypeNodeRaw(node: Node): Boolean
Link copied to clipboard
inline fun isReturnStatement(node: Node): Boolean
Link copied to clipboard
external fun isReturnStatementRaw(node: Node): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun isSetAccessor(node: Node): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
external fun isSetAccessorRaw(node: Node): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun isSourceFile(node: Node): Boolean
Link copied to clipboard
external fun isSourceFileRaw(node: Node): Boolean
Link copied to clipboard
inline fun isSpreadAssignment(node: Node): Boolean
Link copied to clipboard
external fun isSpreadAssignmentRaw(node: Node): Boolean
Link copied to clipboard
inline fun isSpreadElement(node: Node): Boolean
Link copied to clipboard
external fun isSpreadElementRaw(node: Node): Boolean
Link copied to clipboard
inline fun isStatement(node: Node): Boolean
Link copied to clipboard
external fun isStatementRaw(node: Node): Boolean
Link copied to clipboard
inline fun isStringLiteral(node: Node): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
external fun isStringLiteralRaw(node: Node): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun isSwitchStatement(node: Node): Boolean
Link copied to clipboard
external fun isSwitchStatementRaw(node: Node): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun isTemplateExpression(node: Node): Boolean
Link copied to clipboard
external fun isTemplateExpressionRaw(node: Node): Boolean
Link copied to clipboard
inline fun isTemplateHead(node: Node): Boolean
Link copied to clipboard
external fun isTemplateHeadRaw(node: Node): Boolean
Link copied to clipboard
inline fun isTemplateLiteral(node: Node): Boolean
Link copied to clipboard
external fun isTemplateLiteralRaw(node: Node): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun isTemplateMiddle(node: Node): Boolean
Link copied to clipboard
Link copied to clipboard
external fun isTemplateMiddleRaw(node: Node): Boolean
Link copied to clipboard
inline fun isTemplateSpan(node: Node): Boolean
Link copied to clipboard
external fun isTemplateSpanRaw(node: Node): Boolean
Link copied to clipboard
inline fun isTemplateTail(node: Node): Boolean
Link copied to clipboard
external fun isTemplateTailRaw(node: Node): Boolean
Link copied to clipboard
inline fun isThisTypeNode(node: Node): Boolean
Link copied to clipboard
external fun isThisTypeNodeRaw(node: Node): Boolean
Link copied to clipboard
inline fun isThrowStatement(node: Node): Boolean
Link copied to clipboard
external fun isThrowStatementRaw(node: Node): Boolean
Link copied to clipboard
external fun isToken(n: Node): Boolean

True if node is of some token syntax kind. For example, this is true for an IfKeyword but not for an IfStatement. Literals are considered tokens, except TemplateLiteral, but does include TemplateHead/Middle/Tail.

Link copied to clipboard
external fun isTokenKind(kind: SyntaxKind): Boolean

True if kind is of some token syntax kind. For example, this is true for an IfKeyword but not for an IfStatement. Literals are considered tokens, except TemplateLiteral, but does include TemplateHead/Middle/Tail.

Link copied to clipboard
inline fun isTryStatement(node: Node): Boolean
Link copied to clipboard
external fun isTryStatementRaw(node: Node): Boolean
Link copied to clipboard
inline fun isTupleTypeNode(node: Node): Boolean
Link copied to clipboard
external fun isTupleTypeNodeRaw(node: Node): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun isTypeElement(node: Node): Boolean
Link copied to clipboard
external fun isTypeElementRaw(node: Node): Boolean
Link copied to clipboard
inline fun isTypeLiteralNode(node: Node): Boolean
Link copied to clipboard
external fun isTypeLiteralNodeRaw(node: Node): Boolean
Link copied to clipboard
inline fun isTypeNode(node: Node): Boolean
Link copied to clipboard
external fun isTypeNodeRaw(node: Node): Boolean

Node test that determines whether a node is a valid type node. This differs from the isPartOfTypeNode function which determines whether a node is part of a TypeNode.

Link copied to clipboard
inline fun isTypeOfExpression(node: Node): Boolean
Link copied to clipboard
external fun isTypeOfExpressionRaw(node: Node): Boolean
Link copied to clipboard
inline fun isTypeOperatorNode(node: Node): Boolean
Link copied to clipboard
external fun isTypeOperatorNodeRaw(node: Node): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun isTypePredicateNode(node: Node): Boolean
Link copied to clipboard
external fun isTypePredicateNodeRaw(node: Node): Boolean
Link copied to clipboard
inline fun isTypeQueryNode(node: Node): Boolean
Link copied to clipboard
external fun isTypeQueryNodeRaw(node: Node): Boolean
Link copied to clipboard
inline fun isTypeReferenceNode(node: Node): Boolean
Link copied to clipboard
external fun isTypeReferenceNodeRaw(node: Node): Boolean
Link copied to clipboard
inline fun isUnionTypeNode(node: Node): Boolean
Link copied to clipboard
external fun isUnionTypeNodeRaw(node: Node): Boolean
Link copied to clipboard
inline fun isUnparsedNode(node: Node): Boolean
Link copied to clipboard
external fun isUnparsedNodeRaw(node: Node): Boolean
Link copied to clipboard
inline fun isUnparsedPrepend(node: Node): Boolean
Link copied to clipboard
external fun isUnparsedPrependRaw(node: Node): Boolean
Link copied to clipboard
inline fun isUnparsedSource(node: Node): Boolean
Link copied to clipboard
external fun isUnparsedSourceRaw(node: Node): Boolean
Link copied to clipboard
inline fun isUnparsedTextLike(node: Node): Boolean
Link copied to clipboard
external fun isUnparsedTextLikeRaw(node: Node): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun isVariableStatement(node: Node): Boolean
Link copied to clipboard
external fun isVariableStatementRaw(node: Node): Boolean
Link copied to clipboard
inline fun isVoidExpression(node: Node): Boolean
Link copied to clipboard
external fun isVoidExpressionRaw(node: Node): Boolean
Link copied to clipboard
inline fun isWhileStatement(node: Node): Boolean
Link copied to clipboard
external fun isWhileStatementRaw(node: Node): Boolean
Link copied to clipboard
external fun isWhiteSpaceLike(ch: Double): Boolean
Link copied to clipboard

Does not include line breaks. For that, see isWhiteSpaceLike.

Link copied to clipboard
inline fun isWithStatement(node: Node): Boolean
Link copied to clipboard
external fun isWithStatementRaw(node: Node): Boolean
Link copied to clipboard
inline fun isYieldExpression(node: Node): Boolean
Link copied to clipboard
external fun isYieldExpressionRaw(node: Node): Boolean
Link copied to clipboard
inline operator fun <T> ReadonlyArrayAdapter<T>.iterator(): Iterator<T>
Link copied to clipboard
external fun moveEmitHelpers(source: Node, target: Node, predicate: (helper: EmitHelper) -> Boolean)

Moves matching emit helpers from a source node to a target node.

Link copied to clipboard
external fun <T : Node> moveSyntheticComments(node: T, original: Node): T
Link copied to clipboard
external fun nodeModuleNameResolver(moduleName: String, containingFile: String, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache: ModuleResolutionCache = definedExternally, redirectedReference: ResolvedProjectReference = definedExternally): ResolvedModuleWithFailedLookupLocations
Link copied to clipboard
external fun parseCommandLine(commandLine: ReadonlyArray<String>, readFile: (path: String) -> String? = definedExternally): ParsedCommandLine
Link copied to clipboard

Parse the text of the tsconfig.json file

Link copied to clipboard
external fun parseIsolatedEntityName(text: String, languageVersion: ScriptTarget): EntityName?
Link copied to clipboard
external fun parseJsonConfigFileContent(json: Any?, host: ParseConfigHost, basePath: String, existingOptions: CompilerOptions = definedExternally, configFileName: String = definedExternally, resolutionStack: ReadonlyArray<Path> = definedExternally, extraFileExtensions: ReadonlyArray<FileExtensionInfo> = definedExternally, extendedConfigCache: ReadonlyMap<String, ExtendedConfigCacheEntry> = definedExternally, existingWatchOptions: WatchOptions = definedExternally): ParsedCommandLine

Parse the contents of a config file (tsconfig.json).

Link copied to clipboard
external fun parseJsonSourceFileConfigFileContent(sourceFile: TsConfigSourceFile, host: ParseConfigHost, basePath: String, existingOptions: CompilerOptions = definedExternally, configFileName: String = definedExternally, resolutionStack: ReadonlyArray<Path> = definedExternally, extraFileExtensions: ReadonlyArray<FileExtensionInfo> = definedExternally, extendedConfigCache: ReadonlyMap<String, ExtendedConfigCacheEntry> = definedExternally, existingWatchOptions: WatchOptions = definedExternally): ParsedCommandLine

Parse the contents of a config file (tsconfig.json).

Link copied to clipboard
external fun parseJsonText(fileName: String, sourceText: String): JsonSourceFile

Parse json text into SyntaxTree and return node and parse errors if any

Link copied to clipboard
external fun preProcessFile(sourceText: String, readImportFiles: Boolean = definedExternally, detectJavaScriptImports: Boolean = definedExternally): PreProcessedFileInfo
Link copied to clipboard
external fun readConfigFile(fileName: String, readFile: (path: String) -> String?): ReadConfigFileResult

Read tsconfig.json file

Link copied to clipboard
external fun readJsonConfigFile(fileName: String, readFile: (path: String) -> String?): TsConfigSourceFile

Read tsconfig.json file

Link copied to clipboard
external fun <T, U> reduceEachLeadingCommentRange(text: String, pos: Double, cb: (pos: Double, end: Double, kind: CommentKind, hasTrailingNewLine: Boolean, state: T) -> U, state: T, initial: U): U?
Link copied to clipboard
external fun <T, U> reduceEachTrailingCommentRange(text: String, pos: Double, cb: (pos: Double, end: Double, kind: CommentKind, hasTrailingNewLine: Boolean, state: T) -> U, state: T, initial: U): U?
Link copied to clipboard
external fun removeEmitHelper(node: Node, helper: EmitHelper): Boolean

Removes an EmitHelper from a node.

Link copied to clipboard
external fun resolveModuleName(moduleName: String, containingFile: String, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache: ModuleResolutionCache = definedExternally, redirectedReference: ResolvedProjectReference = definedExternally, resolutionMode: ResolutionMode = definedExternally): ResolvedModuleWithFailedLookupLocations
Link copied to clipboard
external fun resolveModuleNameFromCache(moduleName: String, containingFile: String, cache: ModuleResolutionCache, mode: ResolutionMode = definedExternally): ResolvedModuleWithFailedLookupLocations?
Link copied to clipboard

Returns the target config filename of a project reference. Note: The file might not exist.

Link copied to clipboard
external fun resolveTripleslashReference(moduleName: String, containingFile: String): String
Link copied to clipboard
external fun resolveTypeReferenceDirective(typeReferenceDirectiveName: String, containingFile: String?, options: CompilerOptions, host: ModuleResolutionHost, redirectedReference: ResolvedProjectReference = definedExternally, cache: TypeReferenceDirectiveResolutionCache = definedExternally, resolutionMode: ResolutionMode = definedExternally): ResolvedTypeReferenceDirectiveWithFailedLookupLocations
Link copied to clipboard
external fun <T : Node> setCommentRange(node: T, range: TextRange): T

Sets a custom text range to use when emitting comments.

Link copied to clipboard

Sets the constant value to emit for an expression.

Link copied to clipboard
external fun <T : Node> setEmitFlags(node: T, emitFlags: EmitFlags): T

Sets flags that control emit behavior of a node.

Link copied to clipboard
external fun <T : Node> setOriginalNode(node: T, original: Node?): T
Link copied to clipboard
external fun <T : Node> setSourceMapRange(node: T, range: SourceMapRange?): T

Sets a custom text range to use when emitting source maps.

Link copied to clipboard
external fun <T : Node> setSyntheticLeadingComments(node: T, comments: ReadonlyArray<SynthesizedComment>?): T
Link copied to clipboard
external fun <T : Node> setSyntheticTrailingComments(node: T, comments: ReadonlyArray<SynthesizedComment>?): T
Link copied to clipboard
external fun <T : TextRange> setTextRange(range: T, location: TextRange?): T
Link copied to clipboard
external fun <T : Node> setTokenSourceMapRange(node: T, token: SyntaxKind, range: SourceMapRange?): T

Sets the TextRange to use for source maps for a token of a node.

Link copied to clipboard
external fun symbolName(symbol: Symbol): String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
external fun textSpanContainsPosition(span: TextSpan, position: Double): Boolean
Link copied to clipboard
external fun textSpanContainsTextSpan(span: TextSpan, other: TextSpan): Boolean
Link copied to clipboard
external fun textSpanEnd(span: TextSpan): Double
Link copied to clipboard
external fun textSpanIntersection(span1: TextSpan, span2: TextSpan): TextSpan?
Link copied to clipboard
external fun textSpanIntersectsWith(span: TextSpan, start: Double, length: Double): Boolean
Link copied to clipboard
external fun textSpanIntersectsWithPosition(span: TextSpan, position: Double): Boolean
Link copied to clipboard
Link copied to clipboard
external fun textSpanIsEmpty(span: TextSpan): Boolean
Link copied to clipboard
external fun textSpanOverlap(span1: TextSpan, span2: TextSpan): TextSpan?
Link copied to clipboard
external fun textSpanOverlapsWith(span: TextSpan, other: TextSpan): Boolean
Link copied to clipboard
Link copied to clipboard
external fun tokenToString(t: SyntaxKind): String?
Link copied to clipboard
external fun <T : Node> transform(source: T, transformers: ReadonlyArray<TransformerFactory<T>>, compilerOptions: CompilerOptions = definedExternally): TransformationResult<T>
external fun <T : Node> transform(source: ReadonlyArray<T>, transformers: ReadonlyArray<TransformerFactory<T>>, compilerOptions: CompilerOptions = definedExternally): TransformationResult<T>

Transform one or more nodes using the supplied transformers.

Link copied to clipboard
external fun transpile(input: String, compilerOptions: CompilerOptions = definedExternally, fileName: String = definedExternally, diagnostics: ReadonlyArray<Diagnostic> = definedExternally, moduleName: String = definedExternally): String
Link copied to clipboard
external fun transpileModule(input: String, transpileOptions: TranspileOptions): TranspileOutput
Link copied to clipboard
external fun unescapeLeadingUnderscores(identifier: __String): String

Remove extra underscore from escaped identifier text content.

Link copied to clipboard
external fun updateLanguageServiceSourceFile(sourceFile: SourceFile, scriptSnapshot: IScriptSnapshot, version: String, textChangeRange: TextChangeRange?, aggressiveChecks: Boolean = definedExternally): SourceFile
Link copied to clipboard
external fun updateSourceFile(sourceFile: SourceFile, newText: String, textChangeRange: TextChangeRange, aggressiveChecks: Boolean = definedExternally): SourceFile
Link copied to clipboard
external fun validateLocaleAndSetLanguage(locale: String, sys: ValidateLocaleAndSetLanguageSys, errors: ReadonlyArray<Diagnostic> = definedExternally)

Checks to see if the locale is in the appropriate format, and if it is, attempts to set the appropriate language.

Link copied to clipboard
external fun visitCommaListElements(elements: NodeArray<Expression>, visitor: Visitor<*, *>, discardVisitor: Visitor<*, *> = definedExternally): NodeArray<Expression>

Visits the elements of a {@link CommaListExpression}.

Link copied to clipboard
external fun <T : Node> visitEachChild(node: T, visitor: Visitor<*, *>, context: TransformationContext?): T
external fun <T : Node> visitEachChild(node: T?, visitor: Visitor<*, *>, context: TransformationContext?, nodesVisitor: VisitEachChildNodesVisitor = definedExternally, tokenVisitor: Visitor<*, *> = definedExternally): T?

Visits each child of a Node using the supplied visitor, possibly returning a new Node of the same kind in its place.

Link copied to clipboard
external fun visitFunctionBody(node: ConciseBody, visitor: Visitor<*, *>, context: TransformationContext): ConciseBody

Resumes a suspended lexical environment and visits a concise body, ending the lexical environment and merging hoisted declarations upon completion.

external fun visitFunctionBody(node: FunctionBody, visitor: Visitor<*, *>, context: TransformationContext): FunctionBody
external fun visitFunctionBody(node: FunctionBody?, visitor: Visitor<*, *>, context: TransformationContext): FunctionBody?

Resumes a suspended lexical environment and visits a function body, ending the lexical environment and merging hoisted declarations upon completion.

Link copied to clipboard
external fun visitIterationBody(body: Statement, visitor: Visitor<*, *>, context: TransformationContext): Statement

Visits an iteration body, adding any block-scoped variables required by the transformation.

Link copied to clipboard
external fun visitLexicalEnvironment(statements: NodeArray<Statement>, visitor: Visitor<*, *>, context: TransformationContext, start: Double = definedExternally, ensureUseStrict: Boolean = definedExternally, nodesVisitor: NodesVisitor = definedExternally): NodeArray<Statement>

Starts a new lexical environment and visits a statement list, ending the lexical environment and merging hoisted declarations upon completion.

Link copied to clipboard
external fun <TIn : Node?, TVisited : Node?, TOut : Node> visitNode(node: TIn, visitor: Visitor<TIn & Any, TVisited>, test: (node: Node) -> Boolean, lift: (ReadonlyArray<Node>) -> Node = definedExternally): Any
external fun <TIn : Node?, TVisited : Node?> visitNode(node: TIn, visitor: Visitor<TIn & Any, TVisited>, test: (node: Node) -> Boolean = definedExternally, lift: (ReadonlyArray<Node>) -> Node = definedExternally): Any

Visits a Node using the supplied visitor, possibly returning a new Node in its place.

Link copied to clipboard
external fun <TIn : Node, TInArray : NodeArray<TIn>?> visitNodes(nodes: TInArray, visitor: Visitor<TIn, Node?>, test: (node: Node) -> Boolean = definedExternally, start: Double = definedExternally, count: Double = definedExternally): Any

Visits a NodeArray using the supplied visitor, possibly returning a new NodeArray in its place.

Link copied to clipboard
external fun visitParameterList(nodes: NodeArray<ParameterDeclaration>, visitor: Visitor<*, *>, context: TransformationContext, nodesVisitor: NodesVisitor = definedExternally): NodeArray<ParameterDeclaration>

Starts a new lexical environment and visits a parameter list, suspending the lexical environment upon completion.

external fun visitParameterList(nodes: NodeArray<ParameterDeclaration>?, visitor: Visitor<*, *>, context: TransformationContext, nodesVisitor: NodesVisitor = definedExternally): NodeArray<ParameterDeclaration>?