Skip to main content
Extremely Popular
Go to Latest
function spy
import { spy } from "https://deno.land/x/deno_slack_api@2.0.1/dev_deps.ts";

Wraps a function or instance method with a Spy.

Type Parameters

optional
Self = any
optional
Args extends unknown[] = any[]
optional
Return = undefined

Type Parameters

Self
Args extends unknown[]
Return

Parameters

func: (this: Self, ...args: Args) => Return

Type Parameters

Self
Args extends unknown[]
Return

Parameters

self: Self
property: keyof Self