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

x/deno_slack_sdk/dev_deps.ts>mock.resolvesNext

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

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

Type Parameters

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

Parameters

iterable: Iterable<Return | Error | Promise<Return | Error>> | AsyncIterable<Return | Error | Promise<Return | Error>>

Returns

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