method RefsWeakMap.set
RefsWeakMap.set<T>(
coder: Coder<T>,
value: T
): this

Sets a reference value for the given coder.

Type Parameters

Parameters

coder: Coder<T>

The coder to store the value for

value: T

The value to store

Return Type

this

This instance for chaining

Usage

import { type RefsWeakMap } from "ref/ref.ts";