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

x/deno_slack_sdk/dev_deps.ts>mock.returnsNext

SDK for building Run on Slack apps using Deno
Extremely Popular
Go to Latest
function mock.returnsNext
import { mock } from "https://deno.land/x/deno_slack_sdk@2.2.0/dev_deps.ts";
const { returnsNext } = mock;

Creates a function that returns the iterable values. Any iterable values that are errors will be thrown.

Type Parameters

Return
optional
Self = any
optional
Args extends unknown[] = any[]

Parameters

values: Iterable<Return | Error>

Returns

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