function stubimport { stub } from "https://deno.land/x/mock@0.15.2/mod.ts"; DeprecatedUse https://deno.land/std/testing/mock.ts instead. stub<Self, Args extends unknown[] = any[], Return = undefined>(self: Self, property: keyof Self): Stub<Self, Args, Return>Replaces an instance method with a Stub. 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 ParametersSelfoptionalArgs extends unknown[] = any[]optionalReturn = undefinedParametersself: Selfproperty: keyof SelfReturnsStub<Self, Args, Return>Type ParametersSelfArgs extends unknown[]ReturnParametersself: Selfproperty: keyof Selffunc: (this: Self, ...args: Args) => ReturnReturnsStub<Self, Args, Return>