Interface Extension<Req, Res>

An interface that must be satisfied to register extensions

Type Parameters

  • Req extends {}

  • Res extends {}

Hierarchy

  • Extension

Methods

  • The extension name to go under 'extensions' in the request body.

    Returns

    The JSON key.

    Returns string

  • A function which is called when the request JSON is being formed. Returns the data to insert under this key.

    Returns

    The request JSON to send.

    Parameters

    • isInitial: boolean

      True when this is part of the initial request (send sticky params)

    Returns undefined | Req

  • A function which is called when there is response JSON under this extension.

    Parameters

    • data: Res

      The response JSON under the extension name.

    Returns void

Generated using TypeDoc