Spied: T extends abstract new (...args: any) => any
    ? SpiedClass<T>
    : T extends (...args: any) => any ? SpiedFunction<T> : never

Constructs the type of a spied class or function.

Type Parameters

  • T extends abstract new (...args: any) => any | (...args: any) => any