function stubimport { stub } from "https://deno.land/std@0.146.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>>stub<Self, Args extends unknown[], Return>(self: Self,property: keyof Self,func?: (this: Self, ...args: Args) => Return,): Stub<Self, Args, Return>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>>Type ParametersSelfArgs extends unknown[]ReturnParametersself: Selfproperty: keyof Selfoptionalfunc: (this: Self, ...args: Args) => ReturnReturnsStub<Self, Args, Return>