interface ConstructorSpyView codeA constructor wrapper that records all calls made to it. Type ParametersSelf = anyView codeArgs extends unknown[] = any[]View codePropertiesoriginal: new (...args: Args) => SelfView codeThe function that is being spied on. calls: SpyCall<Self, Args, Self>[]View codeInformation about calls made to the function or instance method. restored: booleanView codeWhether or not the original instance method has been restored. Methodsnew(...args: Args): SelfView coderestore(): voidView codeIf spying on an instance method, this restores the original instance method.