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

x/deno_slack_sdk/dev_deps.ts>mock.returnsThis

SDK for building Run on Slack apps using Deno
Extremely Popular
Go to Latest
function mock.returnsThis
import { mock } from "https://deno.land/x/deno_slack_sdk@1.6.0/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