Skip to main content
Module

x/rimbu/spy/mod.ts>Spy.FnStubItem

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
type alias Spy.FnStubItem
import { type Spy } from "https://deno.land/x/rimbu@0.14.0/spy/mod.ts";
const { FnStubItem } = Spy;

A single function stub return item.

definition:
| F
| { [[StubCommands.RETURNS]]: ReturnType<F>; }
| { [[StubCommands.THROWS]]: any; }
| { [[StubCommands.RESOLVES]]: PromiseValue<ReturnType<F>>; }
| { [[StubCommands.REJECTS]]: any; }