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