Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/netzo/deps/deno_kv_oauth/dev_deps.ts>stub

Full-stack Deno framework for building business web apps like internal tools, dashboards, admin panels and automated workflows.
Go to Latest
function stub
import { stub } from "https://deno.land/x/netzo@0.5.63/deps/deno_kv_oauth/dev_deps.ts";

Replaces an instance method with a Stub.

Type Parameters

Self
Prop extends keyof Self

Parameters

self: Self
property: Prop

Returns

Stub<Self, GetParametersFromProp<Self, Prop>, GetReturnFromProp<Self, Prop>>

Type Parameters

Self
Prop extends keyof Self

Parameters

self: Self
property: Prop
func: (this: Self, ...args: GetParametersFromProp<Self, Prop>) => GetReturnFromProp<Self, Prop>

Returns

Stub<Self, GetParametersFromProp<Self, Prop>, GetReturnFromProp<Self, Prop>>