ts-morph-structures

Home > ts-morph-structures > FunctionDeclarationImpl

FunctionDeclarationImpl class

Signature:

export default class FunctionDeclarationImpl implements FunctionDeclarationStructureClassIfc 

Implements: FunctionDeclarationStructureClassIfc

Properties

Property Modifiers Type Description
docs readonly (JSDocImpl | string)[]  
hasDeclareKeyword   boolean  
isAsync   boolean  
isDefaultExport   boolean  
isExported   boolean  
isGenerator   boolean  
kind readonly StructureKind.Function  
leadingTrivia readonly stringOrWriterFunction[]  
name?   string | undefined (Optional)
overloads readonly FunctionDeclarationOverloadImpl[]  
parameters readonly ParameterDeclarationImpl[]  
returnType?   stringOrWriterFunction | undefined (Optional)
returnTypeStructure   TypeStructures | undefined  
statements readonly (StatementStructureImpls | stringOrWriterFunction)[]  
trailingTrivia readonly stringOrWriterFunction[]  
typeParameters readonly (TypeParameterDeclarationImpl | string)[]  

Methods

Method Modifiers Description
clone(source) static  
toJSON()