Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Hold

import type { Hold } from "https://raw.githubusercontent.com/baetheus/fun/main/kind.ts";

The Hold interface allows one to trick the typescript compiler into holding onto type information that it would otherwise discard. This is useful when creating an interface that merges multiple type classes (see Flatmappable).

interface Hold <A> {
readonly [HoldSymbol]?: A;
}

§Type Parameters

§Properties

§
readonly [HoldSymbol]?: A
[src]