Skip to main content
Deno 2 is finally here 🎉️
Learn more
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@1.1.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; }