Skip to main content Link Menu Expand (external link) Document Search Copy Copied

mapFromEntries overview

Added in v0.5.19


Table of contents


MapFromEntriesC (interface)

Signature

export interface MapFromEntriesC<K extends t.Mixed, V extends t.Mixed>
  extends t.Type<Map<t.TypeOf<K>, t.TypeOf<V>>, Array<[t.OutputOf<K>, t.OutputOf<V>]>, unknown> {}

Added in v0.5.19

mapFromEntries

Signature

export function mapFromEntries<K extends t.Mixed, V extends t.Mixed>(
  keyCodec: K,
  KO: Ord<t.TypeOf<K>>,
  valueCodec: V,
  name: string = `Map<${keyCodec.name}, ${valueCodec.name}>`
): MapFromEntriesC<K, V> { ... }

Added in v0.5.19