interface ConstructorSpyimport { type ConstructorSpy } from "https://deno.land/std@0.221.0/testing/mock.ts"; A constructor wrapper that records all calls made to it. Type ParametersoptionalSelf = anyoptionalArgs extends unknown[] = any[]Propertiesoriginal: new (...args: Args) => SelfThe function that is being spied on. calls: SpyCall<Self, Args, Self>[]Information about calls made to the function or instance method. restored: booleanWhether or not the original instance method has been restored. Methodsnew(...args: Args): Selfrestore(): voidIf spying on an instance method, this restores the original instance method.