Skip to content

WeakMap

6 wrappers generated from WeakMap and WeakMap.prototype. Every entry takes a single object literal whose keys mirror the original parameter names, plus an optional prompt: string for the LLM path.

MethodFirst signature
delete
delete(input: { weakMap: <receiver>; key: K; prompt?: string }): Promise<boolean>
get
get(input: { weakMap: <receiver>; key: K; prompt?: string }): Promise<V>
getOrInsert
getOrInsert(input: { weakMap: <receiver>; key: K; defaultValue: V; prompt?: string }): Promise<V>
getOrInsertComputed
getOrInsertComputed(input: { weakMap: <receiver>; key: K; callback?: (key: K) => V; prompt?: string }): Promise<V>
has
has(input: { weakMap: <receiver>; key: K; prompt?: string }): Promise<boolean>
set
set(input: { weakMap: <receiver>; key: K; value: V; prompt?: string }): Promise<WeakMap<K, V>>