Type Alias SecondParam<T>

SecondParam<T>: T extends [any, infer S]
    ? S
    : unknown

Utility type to get the second parameter of a function, used to get the types of all plugin options.

Type Parameters

  • T extends [any] | [any, any]