Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/deno_slack_sdk/dev_deps.ts>mock.returnsThis

SDK for building Run on Slack apps using Deno
Latest
function mock.returnsThis
import { mock } from "https://deno.land/x/deno_slack_sdk@2.14.2/dev_deps.ts";
const { returnsThis } = mock;

Creates a function that returns the instance the method was called on.

Type Parameters

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

Returns

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