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

x/deno_slack_sdk/dev_deps.ts>mock.returnsArgs

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

Creates a function that returns its arguments or a subset of them. If end is specified, it will return arguments up to but not including the end.

Type Parameters

Args extends unknown[]
optional
Self = any

Parameters

optional
start = [UNSUPPORTED]
optional
end: number

Returns

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