UNPKG

523 BTypeScriptView Raw
1/**
2 * @since 0.5.19
3 */
4import { Ord } from 'fp-ts/lib/Ord'
5import * as t from 'io-ts'
6/**
7 * @since 0.5.19
8 */
9export interface ReadonlyMapFromEntriesC<K extends t.Mixed, V extends t.Mixed>
10 extends t.Type<ReadonlyMap<t.TypeOf<K>, t.TypeOf<V>>, ReadonlyArray<[t.OutputOf<K>, t.OutputOf<V>]>, unknown> {}
11/**
12 * @since 0.5.19
13 */
14export declare function readonlyMapFromEntries<K extends t.Mixed, V extends t.Mixed>(
15 keyCodec: K,
16 KO: Ord<t.TypeOf<K>>,
17 valueCodec: V,
18 name?: string
19): ReadonlyMapFromEntriesC<K, V>
20
\No newline at end of file