Skip to main content
Module

x/deno_slack_sdk/dev_deps.ts>mock.returnsThis

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