Skip to main content
Go to Latest
function mock.returnsArgs
import { mock } from "https://deno.land/x/deno_slack_sdk@1.0.1/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