Skip to main content
Deno 2 is finally here 🎉️
Learn more
Extremely Popular
Go to Latest
function mock.returnsNext
import { mock } from "https://deno.land/x/deno_slack_sdk@1.1.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