Type Alias WithFunction

WithFunction: { paramCount?: number | Range; skipCount?: number }

Defines attributes for the function option.

Type declaration

  • Optional ReadonlyparamCount?: number | Range

    The function's parameter count.

    If unspecified or negative, the option accepts unlimited parameters. If zero, the option accepts unknown number of parameters (use with WithFunction.skipCount). If positive, then the option expects exactly this number of parameters. If a range, then the option expects between min and max parameters.

  • OptionalskipCount?: number

    The number of remaining arguments to skip. It is meant to be changed by the callback. (The parser does not alter this value.)