import { identity } from "../Function"; import type { Either } from "./model"; /** * Compact type Either | Either to Either */ export const deunion: >( fa: T ) => [T] extends [Either] ? Either : T = identity as any; export const widenE = () => (fa: Either): Either => fa; export const widenA = () => (fa: Either): Either => fa;