Logo Xantham

TsMethod Type

Represents a method-like member (class or interface) or signature-like method.

Reflects: `MethodDeclaration` (class), `MethodSignature` (interface), and function-like members including optional `?` and `static` modifiers.

interface I { foo(x: number): string } class C { static bar(): void {} }

Record fields

Record Field Description

Documentation

Full Usage: Documentation

Field type: TsComment list
Field type: TsComment list

IsOptional

Full Usage: IsOptional

Field type: bool
Field type: bool

IsStatic

Full Usage: IsStatic

Field type: bool
Field type: bool

Name

Full Usage: Name

Field type: string
Field type: string

Parameters

Full Usage: Parameters

Field type: TsParameter list
Field type: TsParameter list

Type

Full Usage: Type

Field type: TypeKey
Field type: TypeKey

Type something to start searching.