Module

x/deno_slack_hooks/dev_deps.ts>spy

Helper library implementing the contract between the Slack CLI and Slack application SDKs
Latest
function spy
import { spy } from "https://dotland.deno.dev/x/deno_slack_hooks@1.3.0/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
Prop extends keyof Self

Parameters

self: Self
property: Prop

Returns

Spy<Self, GetParametersFromProp<Self, Prop>, GetReturnFromProp<Self, Prop>>