MCPcopy Create free account
hub / github.com/Effect-TS/effect / hashMapLink

Function hashMapLink

packages/effect/src/Schema.ts:15815–15823  ·  view source on GitHub ↗
(entries: Schema<ReadonlyArray<readonly [Key, Value]>>)

Source from the content-addressed store, hash-verified

15813// -----------------------------------------------------------------------------
15814
15815function hashMapLink<Key, Value>(entries: Schema<ReadonlyArray<readonly [Key, Value]>>) {
15816 return link<HashMap_.HashMap<Key, Value>>()(
15817 entries,
15818 SchemaTransformation.transform({
15819 decode: HashMap_.fromIterable,
15820 encode: HashMap_.toEntries
15821 })
15822 )
15823}
15824/**
15825 * Type-level representation returned by {@link HashMap}.
15826 *

Callers 1

HashMapFunction · 0.85

Calls 2

linkFunction · 0.70
transformMethod · 0.65

Tested by

no test coverage detected