Type Alias PluginResult<P>

PluginResult<P>: P extends [infer H extends ((t: TestBase, opts: any) => any), ...(infer T extends ((t: TestBase, opts: any) => any)[])]
    ? ReturnType<H> & PluginResult<T>
    : {}

Utility type to combine the array of plugins into a single combined return type.

Type Parameters

  • P extends ((t: TestBase, opts: any) => any)[]