Method declaration. A method is contained in an interface or a class. Contains information abount the method itself.

Export

Implements

Implements

Implements

Hierarchy

  • MethodDeclaration

Implements

Constructors

Properties

end?: number

The ending character of the node in the document.

Memberof

Node

isAbstract: boolean

Defines if the declaration is abstract or not.

Memberof

AbstractDeclaration

isAsync: boolean

Defines if the declaration is async or not.

Memberof

AsyncDeclaration

isOptional: boolean

Defines if the declaration is optional or not.

Memberof

OptionalDeclaration

isStatic: boolean

Defines if the declaration is static or not.

Memberof

StaticDeclaration

name: string

The name of the declaration.

Memberof

Declaration

parameters: ParameterDeclaration[] = []

List of used parameters in the callable node.

Memberof

CallableDeclaration

start?: number

The starting character of the node in the document.

Memberof

Node

type: undefined | string

The type of the declaration.

Example

"string"

Example

"Declaration[]"

Memberof

TypedDeclaration

variables: VariableDeclaration[] = []

List of used variables in the callable node.

Memberof

CallableDeclaration

visibility: undefined | DeclarationVisibility

Defines the visibility scope of the declaration. Can be undefined, in which case there is no visibility given (e.g. methods in interfaces).

Memberof

ScopedDeclaration

Generated using TypeDoc