Skip to content

Overload

Overload represents the serializable format of a function overload.

new Overload(id, args?, returnType?, target?, examples?): Overload

Constructor returns a new serializable representation of a global or member overload.

string

TypeDesc[] = []

TypeDesc

TypeDesc

string[] = []

Overload

args: TypeDesc[]


examples: string[]


id: string


optional return?: TypeDesc


optional target?: TypeDesc

asFunctionOption(tp): OverloadDecl

AsFunctionOption converts the serializable form of the Overload into a function declaration option.

Provider

OverloadDecl


validate(): Error | undefined

Validate validates the overload configuration is well-formed.

Error | undefined