function stubimport { stub } from "https://dotland.deno.dev/std@0.181.0/testing/mock.ts"; stub<Self, Prop extends keyof Self>(self: Self, property: Prop): Stub<Self, GetParametersFromProp<Self, Prop>, GetReturnFromProp<Self, Prop>>Replaces an instance method with a Stub. stub<Self, Prop extends keyof Self>(self: Self,property: Prop,func: (this: Self, ...args: GetParametersFromProp<Self, Prop>) => GetReturnFromProp<Self, Prop>,): Stub<Self, GetParametersFromProp<Self, Prop>, GetReturnFromProp<Self, Prop>>Replaces an instance method with a Stub. Type ParametersSelfProp extends keyof SelfParametersself: Selfproperty: PropReturnsStub<Self, GetParametersFromProp<Self, Prop>, GetReturnFromProp<Self, Prop>>Type ParametersSelfProp extends keyof SelfParametersself: Selfproperty: Propfunc: (this: Self, ...args: GetParametersFromProp<Self, Prop>) => GetReturnFromProp<Self, Prop>ReturnsStub<Self, GetParametersFromProp<Self, Prop>, GetReturnFromProp<Self, Prop>>