Skip to main content
Module

x/deno_slack_sdk/dev_deps.ts>mock.returnsArgs

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