Current section

Files

Jump to
gossamer src gossamer weak_ref.type.ts
Raw

src/gossamer/weak_ref.type.ts

// `_T` is phantom: Gleam tracks the target type but JS `WeakRef`
// erases it to `WeakKey`. A constrained `T extends WeakKey` would
// fail against Gleam's own unconstrained `.d.mts` output.
export type WeakRef$<_T> = WeakRef<WeakKey>;