Table of Contents

About

Same function name but with a different signature (list of parameters)

Their will be then the same function name or an operator but that manipulates two different objects (data structure, type).

Example

Function / Method

declare function getWidget(n: number): Widget;
declare function getWidget(s: string): Widget[];

Operator

built-in operators such as addition (+), can be:

  • integer addition
  • or floating-point addition.

The two operations work on different types of operands and require different functions.

Documentation / Reference