ts-morph-structures
ts-morph Structures Reference
Table of contents
AbstractableNodeStructure
AmbientableNodeStructure
AsyncableNodeStructure
BindingNamedNodeStructure
CallSignatureDeclarationSpecificStructure
CallSignatureDeclarationStructure
ClassDeclarationSpecificStructure
ClassDeclarationStructure
ClassLikeDeclarationBaseSpecificStructure
ClassLikeDeclarationBaseStructure
ClassMemberStructures
ClassStaticBlockDeclarationSpecificStructure
ClassStaticBlockDeclarationStructure
ConstructSignatureDeclarationSpecificStructure
ConstructSignatureDeclarationStructure
ConstructorDeclarationOverloadSpecificStructure
ConstructorDeclarationOverloadStructure
ConstructorDeclarationSpecificStructure
ConstructorDeclarationStructure
DecoratableNodeStructure
DecoratorSpecificStructure
DecoratorStructure
EnumDeclarationSpecificStructure
EnumDeclarationStructure
EnumMemberSpecificStructure
EnumMemberStructure
ExclamationTokenableNodeStructure
ExportAssignmentSpecificStructure
ExportAssignmentStructure
ExportDeclarationSpecificStructure
ExportDeclarationStructure
ExportSpecifierSpecificStructure
ExportSpecifierStructure
ExportableNodeStructure
ExpressionedNodeStructure
ExtendsClauseableNodeStructure
FunctionDeclarationOverloadSpecificStructure
FunctionDeclarationOverloadStructure
FunctionDeclarationSpecificStructure
FunctionDeclarationStructure
FunctionLikeDeclarationStructure
GeneratorableNodeStructure
GetAccessorDeclarationSpecificStructure
GetAccessorDeclarationStructure
ImplementsClauseableNodeStructure
ImportAttributeNamedNodeStructure
ImportAttributeStructure
ImportAttributeStructureSpecificStructure
ImportDeclarationSpecificStructure
ImportDeclarationStructure
ImportSpecifierSpecificStructure
ImportSpecifierStructure
IndexSignatureDeclarationSpecificStructure
IndexSignatureDeclarationStructure
InitializerExpressionableNodeStructure
InterfaceDeclarationSpecificStructure
InterfaceDeclarationStructure
InterfaceMemberStructures
JSDocSpecificStructure
JSDocStructure
JSDocTagSpecificStructure
JSDocTagStructure
JSDocableNodeStructure
JsxAttributeSpecificStructure
JsxAttributeStructure
JsxAttributedNodeStructure
JsxElementSpecificStructure
JsxElementStructure
JsxSelfClosingElementSpecificStructure
JsxSelfClosingElementStructure
JsxSpreadAttributeSpecificStructure
JsxSpreadAttributeStructure
JsxStructures
JsxTagNamedNodeStructure
KindedStructure
MethodDeclarationOverloadSpecificStructure
MethodDeclarationOverloadStructure
MethodDeclarationSpecificStructure
MethodDeclarationStructure
MethodSignatureSpecificStructure
MethodSignatureStructure
ModuleDeclarationSpecificStructure
ModuleDeclarationStructure
ModuleNamedNodeStructure
NameableNodeStructure
NamedNodeStructure
ObjectLiteralExpressionPropertyStructures
OverrideableNodeStructure
ParameterDeclarationSpecificStructure
ParameterDeclarationStructure
ParameteredNodeStructure
PropertyAssignmentSpecificStructure
PropertyAssignmentStructure
PropertyDeclarationSpecificStructure
PropertyDeclarationStructure
PropertyNamedNodeStructure
PropertySignatureSpecificStructure
PropertySignatureStructure
QuestionTokenableNodeStructure
ReadonlyableNodeStructure
ReturnTypedNodeStructure
ScopeableNodeStructure
ScopedNodeStructure
SetAccessorDeclarationSpecificStructure
SetAccessorDeclarationStructure
ShorthandPropertyAssignmentSpecificStructure
ShorthandPropertyAssignmentStructure
SignaturedDeclarationStructure
SourceFileSpecificStructure
SourceFileStructure
SpreadAssignmentSpecificStructure
SpreadAssignmentStructure
StatementStructures
StatementedNodeStructure
StaticableNodeStructure
Structure
Structures
TypeAliasDeclarationSpecificStructure
TypeAliasDeclarationStructure
TypeElementMemberStructures
TypeElementMemberedNodeStructure
TypeParameterDeclarationSpecificStructure
TypeParameterDeclarationStructure
TypeParameteredNodeStructure
TypedNodeStructure
VariableDeclarationSpecificStructure
VariableDeclarationStructure
VariableStatementSpecificStructure
VariableStatementStructure
Structures in ts-morph
AbstractableNodeStructure
isAbstract?: boolean;
AmbientableNodeStructure
hasDeclareKeyword?: boolean;
AsyncableNodeStructure
isAsync?: boolean;
BindingNamedNodeStructure
name: string;
CallSignatureDeclarationSpecificStructure
kind: StructureKind.CallSignature;
CallSignatureDeclarationStructure
docs?: (OptionalKind<
JSDocStructure
> | string)[]; From
JSDocableNodeStructure
.
kind: StructureKind.CallSignature; From
CallSignatureDeclarationSpecificStructure
.
leadingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Leading comments or whitespace. From
Structure
.
parameters?: OptionalKind<
ParameterDeclarationStructure
>[]; From
ParameteredNodeStructure
.
returnType?: string | WriterFunction; From
ReturnTypedNodeStructure
.
trailingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Trailing comments or whitespace. From
Structure
.
typeParameters?: (OptionalKind<
TypeParameterDeclarationStructure
> | string)[]; From
TypeParameteredNodeStructure
.
ClassDeclarationSpecificStructure
kind: StructureKind.Class;
ClassDeclarationStructure
ctors?: OptionalKind<
ConstructorDeclarationStructure
>[]; From
ClassLikeDeclarationBaseSpecificStructure
.
decorators?: OptionalKind<
DecoratorStructure
>[]; From
DecoratableNodeStructure
.
docs?: (OptionalKind<
JSDocStructure
> | string)[]; From
JSDocableNodeStructure
.
extends?: string | WriterFunction; From
ClassLikeDeclarationBaseSpecificStructure
.
getAccessors?: OptionalKind<
GetAccessorDeclarationStructure
>[]; From
ClassLikeDeclarationBaseSpecificStructure
.
hasDeclareKeyword?: boolean; From
AmbientableNodeStructure
.
implements?: (string | WriterFunction)[] | WriterFunction; From
ImplementsClauseableNodeStructure
.
isAbstract?: boolean; From
AbstractableNodeStructure
.
isDefaultExport?: boolean; From
ExportableNodeStructure
.
isExported?: boolean; From
ExportableNodeStructure
.
kind: StructureKind.Class; From
ClassDeclarationSpecificStructure
.
leadingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Leading comments or whitespace. From
Structure
.
methods?: OptionalKind<
MethodDeclarationStructure
>[]; From
ClassLikeDeclarationBaseSpecificStructure
.
name?: string; From
NameableNodeStructure
.
name?: string; The class name.
properties?: OptionalKind<
PropertyDeclarationStructure
>[]; From
ClassLikeDeclarationBaseSpecificStructure
.
setAccessors?: OptionalKind<
SetAccessorDeclarationStructure
>[]; From
ClassLikeDeclarationBaseSpecificStructure
.
staticBlocks?: OptionalKind<
ClassStaticBlockDeclarationStructure
>[]; From
ClassLikeDeclarationBaseSpecificStructure
.
trailingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Trailing comments or whitespace. From
Structure
.
typeParameters?: (OptionalKind<
TypeParameterDeclarationStructure
> | string)[]; From
TypeParameteredNodeStructure
.
ClassLikeDeclarationBaseSpecificStructure
ctors?: OptionalKind<
ConstructorDeclarationStructure
>[];
extends?: string | WriterFunction;
getAccessors?: OptionalKind<
GetAccessorDeclarationStructure
>[];
methods?: OptionalKind<
MethodDeclarationStructure
>[];
properties?: OptionalKind<
PropertyDeclarationStructure
>[];
setAccessors?: OptionalKind<
SetAccessorDeclarationStructure
>[];
staticBlocks?: OptionalKind<
ClassStaticBlockDeclarationStructure
>[];
ClassLikeDeclarationBaseStructure
ctors?: OptionalKind<
ConstructorDeclarationStructure
>[]; From
ClassLikeDeclarationBaseSpecificStructure
.
decorators?: OptionalKind<
DecoratorStructure
>[]; From
DecoratableNodeStructure
.
docs?: (OptionalKind<
JSDocStructure
> | string)[]; From
JSDocableNodeStructure
.
extends?: string | WriterFunction; From
ClassLikeDeclarationBaseSpecificStructure
.
getAccessors?: OptionalKind<
GetAccessorDeclarationStructure
>[]; From
ClassLikeDeclarationBaseSpecificStructure
.
implements?: (string | WriterFunction)[] | WriterFunction; From
ImplementsClauseableNodeStructure
.
isAbstract?: boolean; From
AbstractableNodeStructure
.
methods?: OptionalKind<
MethodDeclarationStructure
>[]; From
ClassLikeDeclarationBaseSpecificStructure
.
name?: string; From
NameableNodeStructure
.
properties?: OptionalKind<
PropertyDeclarationStructure
>[]; From
ClassLikeDeclarationBaseSpecificStructure
.
setAccessors?: OptionalKind<
SetAccessorDeclarationStructure
>[]; From
ClassLikeDeclarationBaseSpecificStructure
.
staticBlocks?: OptionalKind<
ClassStaticBlockDeclarationStructure
>[]; From
ClassLikeDeclarationBaseSpecificStructure
.
typeParameters?: (OptionalKind<
TypeParameterDeclarationStructure
> | string)[]; From
TypeParameteredNodeStructure
.
ClassMemberStructures
ClassStaticBlockDeclarationStructure
ConstructorDeclarationStructure
GetAccessorDeclarationStructure
MethodDeclarationStructure
PropertyDeclarationStructure
SetAccessorDeclarationStructure
ClassStaticBlockDeclarationSpecificStructure
kind: StructureKind.ClassStaticBlock;
ClassStaticBlockDeclarationStructure
docs?: (OptionalKind<
JSDocStructure
> | string)[]; From
JSDocableNodeStructure
.
kind: StructureKind.ClassStaticBlock; From
ClassStaticBlockDeclarationSpecificStructure
.
leadingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Leading comments or whitespace. From
Structure
.
statements?: (string | WriterFunction |
StatementStructures
)[] | string | WriterFunction; From
StatementedNodeStructure
.
trailingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Trailing comments or whitespace. From
Structure
.
ConstructSignatureDeclarationSpecificStructure
kind: StructureKind.ConstructSignature;
ConstructSignatureDeclarationStructure
docs?: (OptionalKind<
JSDocStructure
> | string)[]; From
JSDocableNodeStructure
.
kind: StructureKind.ConstructSignature; From
ConstructSignatureDeclarationSpecificStructure
.
leadingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Leading comments or whitespace. From
Structure
.
parameters?: OptionalKind<
ParameterDeclarationStructure
>[]; From
ParameteredNodeStructure
.
returnType?: string | WriterFunction; From
ReturnTypedNodeStructure
.
trailingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Trailing comments or whitespace. From
Structure
.
typeParameters?: (OptionalKind<
TypeParameterDeclarationStructure
> | string)[]; From
TypeParameteredNodeStructure
.
ConstructorDeclarationOverloadSpecificStructure
kind: StructureKind.ConstructorOverload;
ConstructorDeclarationOverloadStructure
docs?: (OptionalKind<
JSDocStructure
> | string)[]; From
JSDocableNodeStructure
.
kind: StructureKind.ConstructorOverload; From
ConstructorDeclarationOverloadSpecificStructure
.
leadingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Leading comments or whitespace. From
Structure
.
parameters?: OptionalKind<
ParameterDeclarationStructure
>[]; From
ParameteredNodeStructure
.
returnType?: string | WriterFunction; From
ReturnTypedNodeStructure
.
scope?: Scope; From
ScopedNodeStructure
.
trailingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Trailing comments or whitespace. From
Structure
.
typeParameters?: (OptionalKind<
TypeParameterDeclarationStructure
> | string)[]; From
TypeParameteredNodeStructure
.
ConstructorDeclarationSpecificStructure
kind: StructureKind.Constructor;
overloads?: OptionalKind<
ConstructorDeclarationOverloadStructure
>[];
ConstructorDeclarationStructure
docs?: (OptionalKind<
JSDocStructure
> | string)[]; From
JSDocableNodeStructure
.
kind: StructureKind.Constructor; From
ConstructorDeclarationSpecificStructure
.
leadingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Leading comments or whitespace. From
Structure
.
overloads?: OptionalKind<
ConstructorDeclarationOverloadStructure
>[]; From
ConstructorDeclarationSpecificStructure
.
parameters?: OptionalKind<
ParameterDeclarationStructure
>[]; From
ParameteredNodeStructure
.
returnType?: string | WriterFunction; From
ReturnTypedNodeStructure
.
scope?: Scope; From
ScopedNodeStructure
.
statements?: (string | WriterFunction |
StatementStructures
)[] | string | WriterFunction; From
StatementedNodeStructure
.
trailingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Trailing comments or whitespace. From
Structure
.
typeParameters?: (OptionalKind<
TypeParameterDeclarationStructure
> | string)[]; From
TypeParameteredNodeStructure
.
DecoratableNodeStructure
decorators?: OptionalKind<
DecoratorStructure
>[];
DecoratorSpecificStructure
arguments?: (string | WriterFunction)[] | WriterFunction; Arguments for a decorator factory.
kind: StructureKind.Decorator;
name: string;
typeArguments?: string[];
DecoratorStructure
arguments?: (string | WriterFunction)[] | WriterFunction; Arguments for a decorator factory. From
DecoratorSpecificStructure
.
kind: StructureKind.Decorator; From
DecoratorSpecificStructure
.
leadingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Leading comments or whitespace. From
Structure
.
name: string; From
DecoratorSpecificStructure
.
trailingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Trailing comments or whitespace. From
Structure
.
typeArguments?: string[]; From
DecoratorSpecificStructure
.
EnumDeclarationSpecificStructure
isConst?: boolean;
kind: StructureKind.Enum;
members?: OptionalKind<
EnumMemberStructure
>[];
EnumDeclarationStructure
docs?: (OptionalKind<
JSDocStructure
> | string)[]; From
JSDocableNodeStructure
.
hasDeclareKeyword?: boolean; From
AmbientableNodeStructure
.
isConst?: boolean; From
EnumDeclarationSpecificStructure
.
isDefaultExport?: boolean; From
ExportableNodeStructure
.
isExported?: boolean; From
ExportableNodeStructure
.
kind: StructureKind.Enum; From
EnumDeclarationSpecificStructure
.
leadingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Leading comments or whitespace. From
Structure
.
members?: OptionalKind<
EnumMemberStructure
>[]; From
EnumDeclarationSpecificStructure
.
name: string; From
NamedNodeStructure
.
trailingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Trailing comments or whitespace. From
Structure
.
EnumMemberSpecificStructure
kind: StructureKind.EnumMember;
value?: number | string; Convenience property for setting the initializer.
EnumMemberStructure
docs?: (OptionalKind<
JSDocStructure
> | string)[]; From
JSDocableNodeStructure
.
initializer?: string | WriterFunction; From
InitializerExpressionableNodeStructure
.
kind: StructureKind.EnumMember; From
EnumMemberSpecificStructure
.
leadingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Leading comments or whitespace. From
Structure
.
name: string; From
PropertyNamedNodeStructure
.
trailingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Trailing comments or whitespace. From
Structure
.
value?: number | string; Convenience property for setting the initializer. From
EnumMemberSpecificStructure
.
ExclamationTokenableNodeStructure
hasExclamationToken?: boolean;
ExportAssignmentSpecificStructure
expression: string | WriterFunction;
isExportEquals?: boolean;
kind: StructureKind.ExportAssignment;
ExportAssignmentStructure
docs?: (OptionalKind<
JSDocStructure
> | string)[]; From
JSDocableNodeStructure
.
expression: string | WriterFunction; From
ExportAssignmentSpecificStructure
.
isExportEquals?: boolean; From
ExportAssignmentSpecificStructure
.
kind: StructureKind.ExportAssignment; From
ExportAssignmentSpecificStructure
.
leadingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Leading comments or whitespace. From
Structure
.
trailingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Trailing comments or whitespace. From
Structure
.
ExportDeclarationSpecificStructure
attributes?: OptionalKind<
ImportAttributeStructure
>[] | undefined;
isTypeOnly?: boolean;
kind: StructureKind.ExportDeclaration;
moduleSpecifier?: string;
namedExports?: (string | OptionalKind<
ExportSpecifierStructure
> | WriterFunction)[] | WriterFunction;
namespaceExport?: string;
ExportDeclarationStructure
attributes?: OptionalKind<
ImportAttributeStructure
>[] | undefined; From
ExportDeclarationSpecificStructure
.
isTypeOnly?: boolean; From
ExportDeclarationSpecificStructure
.
kind: StructureKind.ExportDeclaration; From
ExportDeclarationSpecificStructure
.
leadingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Leading comments or whitespace. From
Structure
.
moduleSpecifier?: string; From
ExportDeclarationSpecificStructure
.
namedExports?: (string | OptionalKind<
ExportSpecifierStructure
> | WriterFunction)[] | WriterFunction; From
ExportDeclarationSpecificStructure
.
namespaceExport?: string; From
ExportDeclarationSpecificStructure
.
trailingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Trailing comments or whitespace. From
Structure
.
ExportSpecifierSpecificStructure
alias?: string;
isTypeOnly?: boolean;
kind: StructureKind.ExportSpecifier;
name: string;
ExportSpecifierStructure
alias?: string; From
ExportSpecifierSpecificStructure
.
isTypeOnly?: boolean; From
ExportSpecifierSpecificStructure
.
kind: StructureKind.ExportSpecifier; From
ExportSpecifierSpecificStructure
.
leadingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Leading comments or whitespace. From
Structure
.
name: string; From
ExportSpecifierSpecificStructure
.
trailingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Trailing comments or whitespace. From
Structure
.
ExportableNodeStructure
isDefaultExport?: boolean;
isExported?: boolean;
ExpressionedNodeStructure
expression: string | WriterFunction;
ExtendsClauseableNodeStructure
extends?: (string | WriterFunction)[] | WriterFunction;
FunctionDeclarationOverloadSpecificStructure
kind: StructureKind.FunctionOverload;
FunctionDeclarationOverloadStructure
docs?: (OptionalKind<
JSDocStructure
> | string)[]; From
JSDocableNodeStructure
.
hasDeclareKeyword?: boolean; From
AmbientableNodeStructure
.
isAsync?: boolean; From
AsyncableNodeStructure
.
isDefaultExport?: boolean; From
ExportableNodeStructure
.
isExported?: boolean; From
ExportableNodeStructure
.
isGenerator?: boolean; From
GeneratorableNodeStructure
.
kind: StructureKind.FunctionOverload; From
FunctionDeclarationOverloadSpecificStructure
.
leadingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Leading comments or whitespace. From
Structure
.
parameters?: OptionalKind<
ParameterDeclarationStructure
>[]; From
ParameteredNodeStructure
.
returnType?: string | WriterFunction; From
ReturnTypedNodeStructure
.
trailingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Trailing comments or whitespace. From
Structure
.
typeParameters?: (OptionalKind<
TypeParameterDeclarationStructure
> | string)[]; From
TypeParameteredNodeStructure
.
FunctionDeclarationSpecificStructure
kind: StructureKind.Function;
overloads?: OptionalKind<
FunctionDeclarationOverloadStructure
>[];
FunctionDeclarationStructure
docs?: (OptionalKind<
JSDocStructure
> | string)[]; From
JSDocableNodeStructure
.
hasDeclareKeyword?: boolean; From
AmbientableNodeStructure
.
isAsync?: boolean; From
AsyncableNodeStructure
.
isDefaultExport?: boolean; From
ExportableNodeStructure
.
isExported?: boolean; From
ExportableNodeStructure
.
isGenerator?: boolean; From
GeneratorableNodeStructure
.
kind: StructureKind.Function; From
FunctionDeclarationSpecificStructure
.
leadingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Leading comments or whitespace. From
Structure
.
name?: string; From
NameableNodeStructure
.
overloads?: OptionalKind<
FunctionDeclarationOverloadStructure
>[]; From
FunctionDeclarationSpecificStructure
.
parameters?: OptionalKind<
ParameterDeclarationStructure
>[]; From
ParameteredNodeStructure
.
returnType?: string | WriterFunction; From
ReturnTypedNodeStructure
.
statements?: (string | WriterFunction |
StatementStructures
)[] | string | WriterFunction; From
StatementedNodeStructure
.
trailingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Trailing comments or whitespace. From
Structure
.
typeParameters?: (OptionalKind<
TypeParameterDeclarationStructure
> | string)[]; From
TypeParameteredNodeStructure
.
FunctionLikeDeclarationStructure
docs?: (OptionalKind<
JSDocStructure
> | string)[]; From
JSDocableNodeStructure
.
parameters?: OptionalKind<
ParameterDeclarationStructure
>[]; From
ParameteredNodeStructure
.
returnType?: string | WriterFunction; From
ReturnTypedNodeStructure
.
statements?: (string | WriterFunction |
StatementStructures
)[] | string | WriterFunction; From
StatementedNodeStructure
.
typeParameters?: (OptionalKind<
TypeParameterDeclarationStructure
> | string)[]; From
TypeParameteredNodeStructure
.
GeneratorableNodeStructure
isGenerator?: boolean;
GetAccessorDeclarationSpecificStructure
kind: StructureKind.GetAccessor;
GetAccessorDeclarationStructure
decorators?: OptionalKind<
DecoratorStructure
>[]; From
DecoratableNodeStructure
.
docs?: (OptionalKind<
JSDocStructure
> | string)[]; From
JSDocableNodeStructure
.
isAbstract?: boolean; From
AbstractableNodeStructure
.
isStatic?: boolean; From
StaticableNodeStructure
.
kind: StructureKind.GetAccessor; From
GetAccessorDeclarationSpecificStructure
.
leadingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Leading comments or whitespace. From
Structure
.
name: string; From
PropertyNamedNodeStructure
.
parameters?: OptionalKind<
ParameterDeclarationStructure
>[]; From
ParameteredNodeStructure
.
returnType?: string | WriterFunction; From
ReturnTypedNodeStructure
.
scope?: Scope; From
ScopedNodeStructure
.
statements?: (string | WriterFunction |
StatementStructures
)[] | string | WriterFunction; From
StatementedNodeStructure
.
trailingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Trailing comments or whitespace. From
Structure
.
typeParameters?: (OptionalKind<
TypeParameterDeclarationStructure
> | string)[]; From
TypeParameteredNodeStructure
.
ImplementsClauseableNodeStructure
implements?: (string | WriterFunction)[] | WriterFunction;
ImportAttributeNamedNodeStructure
name: string;
ImportAttributeStructure
kind: StructureKind.ImportAttribute; From
ImportAttributeStructureSpecificStructure
.
leadingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Leading comments or whitespace. From
Structure
.
name: string; From
ImportAttributeNamedNodeStructure
.
trailingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Trailing comments or whitespace. From
Structure
.
value: string; Expression value. Quote this when providing a string. From
ImportAttributeStructureSpecificStructure
.
ImportAttributeStructureSpecificStructure
kind: StructureKind.ImportAttribute;
value: string; Expression value. Quote this when providing a string.
ImportDeclarationSpecificStructure
attributes?: OptionalKind<
ImportAttributeStructure
>[] | undefined;
defaultImport?: string;
isTypeOnly?: boolean;
kind: StructureKind.ImportDeclaration;
moduleSpecifier: string;
namedImports?: (OptionalKind<
ImportSpecifierStructure
> | string | WriterFunction)[] | WriterFunction;
namespaceImport?: string;
ImportDeclarationStructure
attributes?: OptionalKind<
ImportAttributeStructure
>[] | undefined; From
ImportDeclarationSpecificStructure
.
defaultImport?: string; From
ImportDeclarationSpecificStructure
.
isTypeOnly?: boolean; From
ImportDeclarationSpecificStructure
.
kind: StructureKind.ImportDeclaration; From
ImportDeclarationSpecificStructure
.
leadingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Leading comments or whitespace. From
Structure
.
moduleSpecifier: string; From
ImportDeclarationSpecificStructure
.
namedImports?: (OptionalKind<
ImportSpecifierStructure
> | string | WriterFunction)[] | WriterFunction; From
ImportDeclarationSpecificStructure
.
namespaceImport?: string; From
ImportDeclarationSpecificStructure
.
trailingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Trailing comments or whitespace. From
Structure
.
ImportSpecifierSpecificStructure
alias?: string;
isTypeOnly?: boolean;
kind: StructureKind.ImportSpecifier;
name: string;
ImportSpecifierStructure
alias?: string; From
ImportSpecifierSpecificStructure
.
isTypeOnly?: boolean; From
ImportSpecifierSpecificStructure
.
kind: StructureKind.ImportSpecifier; From
ImportSpecifierSpecificStructure
.
leadingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Leading comments or whitespace. From
Structure
.
name: string; From
ImportSpecifierSpecificStructure
.
trailingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Trailing comments or whitespace. From
Structure
.
IndexSignatureDeclarationSpecificStructure
keyName?: string;
keyType?: string;
kind: StructureKind.IndexSignature;
IndexSignatureDeclarationStructure
docs?: (OptionalKind<
JSDocStructure
> | string)[]; From
JSDocableNodeStructure
.
isReadonly?: boolean; From
ReadonlyableNodeStructure
.
keyName?: string; From
IndexSignatureDeclarationSpecificStructure
.
keyType?: string; From
IndexSignatureDeclarationSpecificStructure
.
kind: StructureKind.IndexSignature; From
IndexSignatureDeclarationSpecificStructure
.
leadingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Leading comments or whitespace. From
Structure
.
returnType?: string | WriterFunction; From
ReturnTypedNodeStructure
.
trailingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Trailing comments or whitespace. From
Structure
.
InitializerExpressionableNodeStructure
initializer?: string | WriterFunction;
InterfaceDeclarationSpecificStructure
kind: StructureKind.Interface;
InterfaceDeclarationStructure
callSignatures?: OptionalKind<
CallSignatureDeclarationStructure
>[]; From
TypeElementMemberedNodeStructure
.
constructSignatures?: OptionalKind<
ConstructSignatureDeclarationStructure
>[]; From
TypeElementMemberedNodeStructure
.
docs?: (OptionalKind<
JSDocStructure
> | string)[]; From
JSDocableNodeStructure
.
extends?: (string | WriterFunction)[] | WriterFunction; From
ExtendsClauseableNodeStructure
.
getAccessors?: OptionalKind<
GetAccessorDeclarationStructure
>[]; From
TypeElementMemberedNodeStructure
.
hasDeclareKeyword?: boolean; From
AmbientableNodeStructure
.
indexSignatures?: OptionalKind<
IndexSignatureDeclarationStructure
>[]; From
TypeElementMemberedNodeStructure
.
isDefaultExport?: boolean; From
ExportableNodeStructure
.
isExported?: boolean; From
ExportableNodeStructure
.
kind: StructureKind.Interface; From
InterfaceDeclarationSpecificStructure
.
leadingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Leading comments or whitespace. From
Structure
.
methods?: OptionalKind<
MethodSignatureStructure
>[]; From
TypeElementMemberedNodeStructure
.
name: string; From
NamedNodeStructure
.
properties?: OptionalKind<
PropertySignatureStructure
>[]; From
TypeElementMemberedNodeStructure
.
setAccessors?: OptionalKind<
SetAccessorDeclarationStructure
>[]; From
TypeElementMemberedNodeStructure
.
trailingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Trailing comments or whitespace. From
Structure
.
typeParameters?: (OptionalKind<
TypeParameterDeclarationStructure
> | string)[]; From
TypeParameteredNodeStructure
.
InterfaceMemberStructures
TypeElementMemberStructures
CallSignatureDeclarationStructure
ConstructSignatureDeclarationStructure
IndexSignatureDeclarationStructure
MethodSignatureStructure
PropertySignatureStructure
JSDocSpecificStructure
description?: string | WriterFunction; The description of the JS doc.
kind: StructureKind.JSDoc;
tags?: OptionalKind<
JSDocTagStructure
>[]; JS doc tags (ex.
@param value - Some description.
).
JSDocStructure
description?: string | WriterFunction; The description of the JS doc. From
JSDocSpecificStructure
.
kind: StructureKind.JSDoc; From
JSDocSpecificStructure
.
leadingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Leading comments or whitespace. From
Structure
.
tags?: OptionalKind<
JSDocTagStructure
>[]; JS doc tags (ex.
@param value - Some description.
). From
JSDocSpecificStructure
.
trailingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Trailing comments or whitespace. From
Structure
.
JSDocTagSpecificStructure
kind: StructureKind.JSDocTag;
tagName: string; The name for the JS doc tag that comes after the “at” symbol.
text?: string | WriterFunction; The text that follows the tag name.
JSDocTagStructure
kind: StructureKind.JSDocTag; From
JSDocTagSpecificStructure
.
leadingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Leading comments or whitespace. From
Structure
.
tagName: string; The name for the JS doc tag that comes after the “at” symbol. From
JSDocTagSpecificStructure
.
text?: string | WriterFunction; The text that follows the tag name. From
JSDocTagSpecificStructure
.
trailingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Trailing comments or whitespace. From
Structure
.
JSDocableNodeStructure
docs?: (OptionalKind<
JSDocStructure
> | string)[];
JsxAttributeSpecificStructure
initializer?: string;
kind: StructureKind.JsxAttribute;
name: string | JsxNamespacedNameStructure;
JsxAttributeStructure
initializer?: string; From
JsxAttributeSpecificStructure
.
kind: StructureKind.JsxAttribute; From
JsxAttributeSpecificStructure
.
leadingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Leading comments or whitespace. From
Structure
.
name: string | JsxNamespacedNameStructure; From
JsxAttributeSpecificStructure
.
trailingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Trailing comments or whitespace. From
Structure
.
JsxAttributedNodeStructure
attributes?: (OptionalKind<
JsxAttributeStructure
> |
JsxSpreadAttributeStructure
)[];
JsxElementSpecificStructure
attributes?: (OptionalKind<
JsxAttributeStructure
> |
JsxSpreadAttributeStructure
)[];
bodyText?: string;
children?: (OptionalKind<
JsxElementStructure
> |
JsxSelfClosingElementStructure
)[];
kind: StructureKind.JsxElement;
name: string;
JsxElementStructure
attributes?: (OptionalKind<
JsxAttributeStructure
> |
JsxSpreadAttributeStructure
)[]; From
JsxElementSpecificStructure
.
bodyText?: string; From
JsxElementSpecificStructure
.
children?: (OptionalKind<
JsxElementStructure
> |
JsxSelfClosingElementStructure
)[]; From
JsxElementSpecificStructure
.
kind: StructureKind.JsxElement; From
JsxElementSpecificStructure
.
leadingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Leading comments or whitespace. From
Structure
.
name: string; From
JsxElementSpecificStructure
.
trailingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Trailing comments or whitespace. From
Structure
.
JsxSelfClosingElementSpecificStructure
kind: StructureKind.JsxSelfClosingElement;
JsxSelfClosingElementStructure
attributes?: (OptionalKind<
JsxAttributeStructure
> |
JsxSpreadAttributeStructure
)[]; From
JsxAttributedNodeStructure
.
kind: StructureKind.JsxSelfClosingElement; From
JsxSelfClosingElementSpecificStructure
.
leadingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Leading comments or whitespace. From
Structure
.
name: string; From
JsxTagNamedNodeStructure
.
trailingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Trailing comments or whitespace. From
Structure
.
JsxSpreadAttributeSpecificStructure
expression: string;
kind: StructureKind.JsxSpreadAttribute;
JsxSpreadAttributeStructure
expression: string; From
JsxSpreadAttributeSpecificStructure
.
kind: StructureKind.JsxSpreadAttribute; From
JsxSpreadAttributeSpecificStructure
.
leadingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Leading comments or whitespace. From
Structure
.
trailingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Trailing comments or whitespace. From
Structure
.
JsxStructures
JsxAttributeStructure
JsxElementStructure
JsxSelfClosingElementStructure
JsxSpreadAttributeStructure
JsxTagNamedNodeStructure
name: string;
KindedStructure
kind: TKind;
MethodDeclarationOverloadSpecificStructure
kind: StructureKind.MethodOverload;
MethodDeclarationOverloadStructure
docs?: (OptionalKind<
JSDocStructure
> | string)[]; From
JSDocableNodeStructure
.
hasOverrideKeyword?: boolean; From
OverrideableNodeStructure
.
hasQuestionToken?: boolean; From
QuestionTokenableNodeStructure
.
isAbstract?: boolean; From
AbstractableNodeStructure
.
isAsync?: boolean; From
AsyncableNodeStructure
.
isGenerator?: boolean; From
GeneratorableNodeStructure
.
isStatic?: boolean; From
StaticableNodeStructure
.
kind: StructureKind.MethodOverload; From
MethodDeclarationOverloadSpecificStructure
.
leadingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Leading comments or whitespace. From
Structure
.
parameters?: OptionalKind<
ParameterDeclarationStructure
>[]; From
ParameteredNodeStructure
.
returnType?: string | WriterFunction; From
ReturnTypedNodeStructure
.
scope?: Scope; From
ScopedNodeStructure
.
trailingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Trailing comments or whitespace. From
Structure
.
typeParameters?: (OptionalKind<
TypeParameterDeclarationStructure
> | string)[]; From
TypeParameteredNodeStructure
.
MethodDeclarationSpecificStructure
kind: StructureKind.Method;
overloads?: OptionalKind<
MethodDeclarationOverloadStructure
>[];
MethodDeclarationStructure
decorators?: OptionalKind<
DecoratorStructure
>[]; From
DecoratableNodeStructure
.
docs?: (OptionalKind<
JSDocStructure
> | string)[]; From
JSDocableNodeStructure
.
hasOverrideKeyword?: boolean; From
OverrideableNodeStructure
.
hasQuestionToken?: boolean; From
QuestionTokenableNodeStructure
.
isAbstract?: boolean; From
AbstractableNodeStructure
.
isAsync?: boolean; From
AsyncableNodeStructure
.
isGenerator?: boolean; From
GeneratorableNodeStructure
.
isStatic?: boolean; From
StaticableNodeStructure
.
kind: StructureKind.Method; From
MethodDeclarationSpecificStructure
.
leadingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Leading comments or whitespace. From
Structure
.
name: string; From
PropertyNamedNodeStructure
.
overloads?: OptionalKind<
MethodDeclarationOverloadStructure
>[]; From
MethodDeclarationSpecificStructure
.
parameters?: OptionalKind<
ParameterDeclarationStructure
>[]; From
ParameteredNodeStructure
.
returnType?: string | WriterFunction; From
ReturnTypedNodeStructure
.
scope?: Scope; From
ScopedNodeStructure
.
statements?: (string | WriterFunction |
StatementStructures
)[] | string | WriterFunction; From
StatementedNodeStructure
.
trailingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Trailing comments or whitespace. From
Structure
.
typeParameters?: (OptionalKind<
TypeParameterDeclarationStructure
> | string)[]; From
TypeParameteredNodeStructure
.
MethodSignatureSpecificStructure
kind: StructureKind.MethodSignature;
MethodSignatureStructure
docs?: (OptionalKind<
JSDocStructure
> | string)[]; From
JSDocableNodeStructure
.
hasQuestionToken?: boolean; From
QuestionTokenableNodeStructure
.
kind: StructureKind.MethodSignature; From
MethodSignatureSpecificStructure
.
leadingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Leading comments or whitespace. From
Structure
.
name: string; From
PropertyNamedNodeStructure
.
parameters?: OptionalKind<
ParameterDeclarationStructure
>[]; From
ParameteredNodeStructure
.
returnType?: string | WriterFunction; From
ReturnTypedNodeStructure
.
trailingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Trailing comments or whitespace. From
Structure
.
typeParameters?: (OptionalKind<
TypeParameterDeclarationStructure
> | string)[]; From
TypeParameteredNodeStructure
.
ModuleDeclarationSpecificStructure
declarationKind?: ModuleDeclarationKind; The module declaration kind.
kind: StructureKind.Module;
ModuleDeclarationStructure
declarationKind?: ModuleDeclarationKind; The module declaration kind. From
ModuleDeclarationSpecificStructure
.
docs?: (OptionalKind<
JSDocStructure
> | string)[]; From
JSDocableNodeStructure
.
hasDeclareKeyword?: boolean; From
AmbientableNodeStructure
.
isDefaultExport?: boolean; From
ExportableNodeStructure
.
isExported?: boolean; From
ExportableNodeStructure
.
kind: StructureKind.Module; From
ModuleDeclarationSpecificStructure
.
leadingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Leading comments or whitespace. From
Structure
.
name: string; From
ModuleNamedNodeStructure
.
statements?: (string | WriterFunction |
StatementStructures
)[] | string | WriterFunction; From
StatementedNodeStructure
.
trailingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Trailing comments or whitespace. From
Structure
.
ModuleNamedNodeStructure
name: string;
NameableNodeStructure
name?: string;
NamedNodeStructure
name: string;
ObjectLiteralExpressionPropertyStructures
GetAccessorDeclarationStructure
MethodDeclarationStructure
PropertyAssignmentStructure
SetAccessorDeclarationStructure
ShorthandPropertyAssignmentStructure
SpreadAssignmentStructure
OverrideableNodeStructure
hasOverrideKeyword?: boolean;
ParameterDeclarationSpecificStructure
isRestParameter?: boolean;
kind: StructureKind.Parameter;
ParameterDeclarationStructure
decorators?: OptionalKind<
DecoratorStructure
>[]; From
DecoratableNodeStructure
.
hasOverrideKeyword?: boolean; From
OverrideableNodeStructure
.
hasQuestionToken?: boolean; From
QuestionTokenableNodeStructure
.
initializer?: string | WriterFunction; From
InitializerExpressionableNodeStructure
.
isReadonly?: boolean; From
ReadonlyableNodeStructure
.
isRestParameter?: boolean; From
ParameterDeclarationSpecificStructure
.
kind: StructureKind.Parameter; From
ParameterDeclarationSpecificStructure
.
leadingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Leading comments or whitespace. From
Structure
.
name: string; From
BindingNamedNodeStructure
.
scope?: Scope; From
ScopeableNodeStructure
.
trailingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Trailing comments or whitespace. From
Structure
.
type?: string | WriterFunction; From
TypedNodeStructure
.
ParameteredNodeStructure
parameters?: OptionalKind<
ParameterDeclarationStructure
>[];
PropertyAssignmentSpecificStructure
initializer: string | WriterFunction;
kind: StructureKind.PropertyAssignment;
PropertyAssignmentStructure
initializer: string | WriterFunction; From
PropertyAssignmentSpecificStructure
.
kind: StructureKind.PropertyAssignment; From
PropertyAssignmentSpecificStructure
.
leadingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Leading comments or whitespace. From
Structure
.
name: string; From
PropertyNamedNodeStructure
.
trailingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Trailing comments or whitespace. From
Structure
.
PropertyDeclarationSpecificStructure
hasAccessorKeyword?: boolean;
kind: StructureKind.Property;
PropertyDeclarationStructure
decorators?: OptionalKind<
DecoratorStructure
>[]; From
DecoratableNodeStructure
.
docs?: (OptionalKind<
JSDocStructure
> | string)[]; From
JSDocableNodeStructure
.
hasAccessorKeyword?: boolean; From
PropertyDeclarationSpecificStructure
.
hasDeclareKeyword?: boolean; From
AmbientableNodeStructure
.
hasExclamationToken?: boolean; From
ExclamationTokenableNodeStructure
.
hasOverrideKeyword?: boolean; From
OverrideableNodeStructure
.
hasQuestionToken?: boolean; From
QuestionTokenableNodeStructure
.
initializer?: string | WriterFunction; From
InitializerExpressionableNodeStructure
.
isAbstract?: boolean; From
AbstractableNodeStructure
.
isReadonly?: boolean; From
ReadonlyableNodeStructure
.
isStatic?: boolean; From
StaticableNodeStructure
.
kind: StructureKind.Property; From
PropertyDeclarationSpecificStructure
.
leadingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Leading comments or whitespace. From
Structure
.
name: string; From
PropertyNamedNodeStructure
.
scope?: Scope; From
ScopedNodeStructure
.
trailingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Trailing comments or whitespace. From
Structure
.
type?: string | WriterFunction; From
TypedNodeStructure
.
PropertyNamedNodeStructure
name: string;
PropertySignatureSpecificStructure
kind: StructureKind.PropertySignature;
PropertySignatureStructure
docs?: (OptionalKind<
JSDocStructure
> | string)[]; From
JSDocableNodeStructure
.
hasQuestionToken?: boolean; From
QuestionTokenableNodeStructure
.
initializer?: string | WriterFunction; From
InitializerExpressionableNodeStructure
.
isReadonly?: boolean; From
ReadonlyableNodeStructure
.
kind: StructureKind.PropertySignature; From
PropertySignatureSpecificStructure
.
leadingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Leading comments or whitespace. From
Structure
.
name: string; From
PropertyNamedNodeStructure
.
trailingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Trailing comments or whitespace. From
Structure
.
type?: string | WriterFunction; From
TypedNodeStructure
.
QuestionTokenableNodeStructure
hasQuestionToken?: boolean;
ReadonlyableNodeStructure
isReadonly?: boolean;
ReturnTypedNodeStructure
returnType?: string | WriterFunction;
ScopeableNodeStructure
scope?: Scope;
ScopedNodeStructure
scope?: Scope;
SetAccessorDeclarationSpecificStructure
kind: StructureKind.SetAccessor;
SetAccessorDeclarationStructure
decorators?: OptionalKind<
DecoratorStructure
>[]; From
DecoratableNodeStructure
.
docs?: (OptionalKind<
JSDocStructure
> | string)[]; From
JSDocableNodeStructure
.
isAbstract?: boolean; From
AbstractableNodeStructure
.
isStatic?: boolean; From
StaticableNodeStructure
.
kind: StructureKind.SetAccessor; From
SetAccessorDeclarationSpecificStructure
.
leadingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Leading comments or whitespace. From
Structure
.
name: string; From
PropertyNamedNodeStructure
.
parameters?: OptionalKind<
ParameterDeclarationStructure
>[]; From
ParameteredNodeStructure
.
returnType?: string | WriterFunction; From
ReturnTypedNodeStructure
.
scope?: Scope; From
ScopedNodeStructure
.
statements?: (string | WriterFunction |
StatementStructures
)[] | string | WriterFunction; From
StatementedNodeStructure
.
trailingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Trailing comments or whitespace. From
Structure
.
typeParameters?: (OptionalKind<
TypeParameterDeclarationStructure
> | string)[]; From
TypeParameteredNodeStructure
.
ShorthandPropertyAssignmentSpecificStructure
kind: StructureKind.ShorthandPropertyAssignment;
ShorthandPropertyAssignmentStructure
kind: StructureKind.ShorthandPropertyAssignment; From
ShorthandPropertyAssignmentSpecificStructure
.
leadingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Leading comments or whitespace. From
Structure
.
name: string; From
NamedNodeStructure
.
trailingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Trailing comments or whitespace. From
Structure
.
SignaturedDeclarationStructure
parameters?: OptionalKind<
ParameterDeclarationStructure
>[]; From
ParameteredNodeStructure
.
returnType?: string | WriterFunction; From
ReturnTypedNodeStructure
.
SourceFileSpecificStructure
kind: StructureKind.SourceFile;
SourceFileStructure
kind: StructureKind.SourceFile; From
SourceFileSpecificStructure
.
leadingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Leading comments or whitespace. From
Structure
.
statements?: (string | WriterFunction |
StatementStructures
)[] | string | WriterFunction; From
StatementedNodeStructure
.
trailingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Trailing comments or whitespace. From
Structure
.
SpreadAssignmentSpecificStructure
kind: StructureKind.SpreadAssignment;
SpreadAssignmentStructure
expression: string | WriterFunction; From
ExpressionedNodeStructure
.
kind: StructureKind.SpreadAssignment; From
SpreadAssignmentSpecificStructure
.
leadingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Leading comments or whitespace. From
Structure
.
trailingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Trailing comments or whitespace. From
Structure
.
StatementStructures
ClassDeclarationStructure
EnumDeclarationStructure
ExportAssignmentStructure
ExportDeclarationStructure
FunctionDeclarationStructure
ImportDeclarationStructure
InterfaceDeclarationStructure
ModuleDeclarationStructure
TypeAliasDeclarationStructure
VariableStatementStructure
StatementedNodeStructure
statements?: (string | WriterFunction |
StatementStructures
)[] | string | WriterFunction;
StaticableNodeStructure
isStatic?: boolean;
Structure
leadingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Leading comments or whitespace.
trailingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Trailing comments or whitespace.
Structures
ClassMemberStructures
ClassStaticBlockDeclarationStructure
ConstructorDeclarationStructure
GetAccessorDeclarationStructure
MethodDeclarationStructure
PropertyDeclarationStructure
SetAccessorDeclarationStructure
ConstructorDeclarationOverloadStructure
DecoratorStructure
EnumMemberStructure
ExportSpecifierStructure
FunctionDeclarationOverloadStructure
ImportAttributeStructure
ImportSpecifierStructure
InterfaceMemberStructures
TypeElementMemberStructures
CallSignatureDeclarationStructure
ConstructSignatureDeclarationStructure
IndexSignatureDeclarationStructure
MethodSignatureStructure
PropertySignatureStructure
JSDocStructure
JSDocTagStructure
JsxStructures
JsxAttributeStructure
JsxElementStructure
JsxSelfClosingElementStructure
JsxSpreadAttributeStructure
MethodDeclarationOverloadStructure
ObjectLiteralExpressionPropertyStructures
GetAccessorDeclarationStructure
MethodDeclarationStructure
PropertyAssignmentStructure
SetAccessorDeclarationStructure
ShorthandPropertyAssignmentStructure
SpreadAssignmentStructure
ParameterDeclarationStructure
SourceFileStructure
StatementStructures
ClassDeclarationStructure
EnumDeclarationStructure
ExportAssignmentStructure
ExportDeclarationStructure
FunctionDeclarationStructure
ImportDeclarationStructure
InterfaceDeclarationStructure
ModuleDeclarationStructure
TypeAliasDeclarationStructure
VariableStatementStructure
TypeParameterDeclarationStructure
VariableDeclarationStructure
TypeAliasDeclarationSpecificStructure
kind: StructureKind.TypeAlias;
type: string | WriterFunction;
TypeAliasDeclarationStructure
docs?: (OptionalKind<
JSDocStructure
> | string)[]; From
JSDocableNodeStructure
.
hasDeclareKeyword?: boolean; From
AmbientableNodeStructure
.
isDefaultExport?: boolean; From
ExportableNodeStructure
.
isExported?: boolean; From
ExportableNodeStructure
.
kind: StructureKind.TypeAlias; From
TypeAliasDeclarationSpecificStructure
.
leadingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Leading comments or whitespace. From
Structure
.
name: string; From
NamedNodeStructure
.
trailingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Trailing comments or whitespace. From
Structure
.
type: string | WriterFunction; From
TypeAliasDeclarationSpecificStructure
.
type?: string | WriterFunction; From
TypedNodeStructure
.
type: string | WriterFunction;
typeParameters?: (OptionalKind<
TypeParameterDeclarationStructure
> | string)[]; From
TypeParameteredNodeStructure
.
TypeElementMemberStructures
CallSignatureDeclarationStructure
ConstructSignatureDeclarationStructure
IndexSignatureDeclarationStructure
MethodSignatureStructure
PropertySignatureStructure
TypeElementMemberedNodeStructure
callSignatures?: OptionalKind<
CallSignatureDeclarationStructure
>[];
constructSignatures?: OptionalKind<
ConstructSignatureDeclarationStructure
>[];
getAccessors?: OptionalKind<
GetAccessorDeclarationStructure
>[];
indexSignatures?: OptionalKind<
IndexSignatureDeclarationStructure
>[];
methods?: OptionalKind<
MethodSignatureStructure
>[];
properties?: OptionalKind<
PropertySignatureStructure
>[];
setAccessors?: OptionalKind<
SetAccessorDeclarationStructure
>[];
TypeParameterDeclarationSpecificStructure
constraint?: string | WriterFunction;
default?: string | WriterFunction;
isConst?: boolean;
kind: StructureKind.TypeParameter;
variance?: TypeParameterVariance;
TypeParameterDeclarationStructure
constraint?: string | WriterFunction; From
TypeParameterDeclarationSpecificStructure
.
default?: string | WriterFunction; From
TypeParameterDeclarationSpecificStructure
.
isConst?: boolean; From
TypeParameterDeclarationSpecificStructure
.
kind: StructureKind.TypeParameter; From
TypeParameterDeclarationSpecificStructure
.
leadingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Leading comments or whitespace. From
Structure
.
name: string; From
NamedNodeStructure
.
trailingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Trailing comments or whitespace. From
Structure
.
variance?: TypeParameterVariance; From
TypeParameterDeclarationSpecificStructure
.
TypeParameteredNodeStructure
typeParameters?: (OptionalKind<
TypeParameterDeclarationStructure
> | string)[];
TypedNodeStructure
type?: string | WriterFunction;
VariableDeclarationSpecificStructure
kind: StructureKind.VariableDeclaration;
VariableDeclarationStructure
hasExclamationToken?: boolean; From
ExclamationTokenableNodeStructure
.
initializer?: string | WriterFunction; From
InitializerExpressionableNodeStructure
.
kind: StructureKind.VariableDeclaration; From
VariableDeclarationSpecificStructure
.
leadingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Leading comments or whitespace. From
Structure
.
name: string; From
BindingNamedNodeStructure
.
trailingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Trailing comments or whitespace. From
Structure
.
type?: string | WriterFunction; From
TypedNodeStructure
.
VariableStatementSpecificStructure
declarationKind?: VariableDeclarationKind;
declarations: OptionalKind<
VariableDeclarationStructure
>[];
kind: StructureKind.VariableStatement;
VariableStatementStructure
declarationKind?: VariableDeclarationKind; From
VariableStatementSpecificStructure
.
declarations: OptionalKind<
VariableDeclarationStructure
>[]; From
VariableStatementSpecificStructure
.
docs?: (OptionalKind<
JSDocStructure
> | string)[]; From
JSDocableNodeStructure
.
hasDeclareKeyword?: boolean; From
AmbientableNodeStructure
.
isDefaultExport?: boolean; From
ExportableNodeStructure
.
isExported?: boolean; From
ExportableNodeStructure
.
kind: StructureKind.VariableStatement; From
VariableStatementSpecificStructure
.
leadingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Leading comments or whitespace. From
Structure
.
trailingTrivia?: string | WriterFunction | (string | WriterFunction)[]; Trailing comments or whitespace. From
Structure
.