Type alias CustomCallback<T, R>

CustomCallback<T, R>: ((info) => R | Promise<R>)

A callback to parse the value of option parameters or to perform word completion.

Type Parameters

  • T

    The information data type

  • R

    The return data type

Type declaration

    • (info): R | Promise<R>
    • Parameters

      • info: T

        The callback information

      Returns R | Promise<R>

Returns

The return value