Home > ts-morph-structures > MethodDeclarationImpl
Signature:
export default class MethodDeclarationImpl implements MethodDeclarationStructureClassIfc
Implements: MethodDeclarationStructureClassIfc
| Constructor | Modifiers | Description |
|---|---|---|
| (constructor)(isStatic, name) | Constructs a new instance of the MethodDeclarationImpl class |
| Property | Modifiers | Type | Description |
|---|---|---|---|
| decorators | readonly |
DecoratorImpl[] | |
| docs | readonly |
(JSDocImpl | string)[] | |
| hasOverrideKeyword | boolean | ||
| hasQuestionToken | boolean | ||
| isAbstract | boolean | ||
| isAsync | boolean | ||
| isGenerator | boolean | ||
| isStatic | boolean | ||
| kind | readonly |
StructureKind.Method | |
| leadingTrivia | readonly |
stringOrWriterFunction[] | |
| name | string | ||
| overloads | readonly |
MethodDeclarationOverloadImpl[] | |
| parameters | readonly |
ParameterDeclarationImpl[] | |
| returnType? | stringOrWriterFunction | undefined | (Optional) | |
| returnTypeStructure | TypeStructures | undefined | ||
| scope? | import(“ts-morph”).Scope<> | undefined | (Optional) | |
| statements | readonly |
(StatementStructureImpls | stringOrWriterFunction)[] | |
| trailingTrivia | readonly |
stringOrWriterFunction[] | |
| typeParameters | readonly |
(TypeParameterDeclarationImpl | string)[] |
| Method | Modifiers | Description |
|---|---|---|
| clone(source) | static |
|
| fromSignature(isStatic, signature) | static |
|
| toJSON() |