effect-io-ai

Package: effect
Module: HashMap

HashMap.HashMap.Entry

This type-level utility extracts the entry type [K, V] from a HashMap<K, V> type.

Example

import { HashMap } from "effect"

declare const hm: HashMap.HashMap<string, number>

// $ExpectType [string, number]
type V = HashMap.HashMap.Entry<typeof hm>

Signature

type Entry<T> = [Key<T>, Value<T>]

Source

Since v3.9.0