UNPKG

@typed/fp

Version:

Data Structures and Resources for fp-ts

16 lines 586 B
/** * @typed/fp/internal is a place for shared code that doesn't belong in the public API * @internal * @since 0.9.2 */ import * as E from 'fp-ts/Either'; /** * Helpful for creatin ChainRec instances for Either-based types. * @internal * @since 0.9.2 * @category Combinator */ export declare const swapEithers: <E, A, B>(either: E.Either<E, E.Either<A, B>>) => E.Either<A, E.Either<E, B>>; export declare function memoize<A, B>(f: (a: A) => B): (a: A) => B; export declare type UndoPartial<A> = [A] extends [Partial<infer R>] ? R : never; //# sourceMappingURL=internal.d.ts.map