Home > @microsoft/api-extractor-model > ApiCallSignature

ApiCallSignature class

Represents a TypeScript function call signature.


export declare class ApiCallSignature extends ApiCallSignature_base 

Extends: ApiCallSignature_base


This is part of the ApiModel hierarchy of classes, which are serializable representations of API declarations.

ApiCallSignature represents a TypeScript declaration such as (x: number, y: number): number in this example:

export interface IChooser {
  // A call signature:
  (x: number, y: number): number;

  // Another overload for this call signature:
  (x: string, y: string): string;

function chooseFirst<T>(x: T, y: T): T {
  return x;

let chooser: IChooser = chooseFirst;


Constructor Modifiers Description
(constructor)(options)   Constructs a new instance of the ApiCallSignature class


Property Modifiers Type Description
containerKey   string  
kind   ApiItemKind  


Method Modifiers Description
buildCanonicalReference()   (BETA)
getContainerKey(overloadIndex) static