UNPKG

pragmatic-fp-ts

Version:

Opinionated functional programming library with easy use in mind

7 lines (6 loc) 362 B
import { Dictionary, SelectorPath } from "./main"; type Input = any[] | Dictionary; export declare function getOr<A = any>(alt: A, path: SelectorPath, input: Input): A; export declare function getOr<A = any>(alt: A, path: SelectorPath): (input: Input) => A; export declare function getOr<A = any>(alt: A): (path: SelectorPath) => (input: Input) => A; export {};