UNPKG

alinea

Version:

[![npm](https://img.shields.io/npm/v/alinea.svg)](https://npmjs.org/package/alinea) [![install size](https://packagephobia.com/badge?p=alinea)](https://packagephobia.com/result?p=alinea)

14 lines (13 loc) 510 B
import { Lazy } from './Lazy.js'; export type LazyRecord<V> = Lazy<{ [key: string]: Lazy<V>; }>; export declare namespace LazyRecord { function iterate<V>(collection: LazyRecord<V>): Array<[string, V]>; function concat<A, B>(a: LazyRecord<A>, b: LazyRecord<B>): LazyRecord<A & B>; function resolve<V>(collection: LazyRecord<V>): { [key: string]: V; }; function keys<V>(collection: LazyRecord<V>): Array<string>; function get<V>(collection: LazyRecord<V>, key: string): V; }