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

x/rimbu/spy/spy.ts>Spy.Obj

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

The spied object type, where the object methods/functions are augmented with spy information.

Type Parameters

T
optional
M extends Spy.ObjMeta<T> = Spy.ObjMeta<T>
definition: [K in keyof T]: T[K] extends Func ? Spy.Fn<T[K]> : T[K] & { [[Spy.META]]: M; }