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

x/rimbu/collection-types/map/interface/variant.ts>VariantMap.NonEmpty

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
interface VariantMap.NonEmpty
implements [VariantMapBase.NonEmpty]<K, V, VariantMap.Types>, Omit<VariantMap<K, V>, keyof VariantMapBase.NonEmpty<any, any, any>>
import { type VariantMap } from "https://deno.land/x/rimbu@1.0.3/collection-types/map/interface/variant.ts";
const { NonEmpty } = VariantMap;

A non-empty type-variant Map of key type K, and value type V. In the Map, each key has exactly one value, and the Map cannot contain duplicate keys. See the Map documentation and the VariantMap API documentation