/** * Either utilities for explicit success/error flows. Functions preserve values and return * new results without mutation. * * **How to import:** * - From the main entry (namespace style) * - Via direct import for tree-shaking * * ```ts * import { DEither, E } from "@duplojs/utils"; * import * as DEither from "@duplojs/utils/either"; * import * as E from "@duplojs/utils/either"; * ``` * * What you will find in this namespace: * - constructors (`E.left`, `E.right`, `E.bool`, `E.nullable`, `E.nullish`, `E.optional`) * - guards and utilities (`E.hasInformation`, `E.whenHasInformation`, `E.unwrapByInformation`, `E.kind`) * - async helpers (`E.future`, `E.safeCallback`) * * @see https://utils.duplojs.dev/en/v1/api/either * * @namespace E * */ export * from "./bool"; export * from "./future"; export * from "./left"; export * from "./nullable"; export * from "./nullish"; export * from "./optional"; export * from "./right"; export * from "./hasInformation"; export * from "./whenHasInformation"; export * from "./whenHasInformationOtherwise"; export * from "./whenIsSelected"; export * from "./whenIsSelectedOtherwise"; export * from "./kind"; export * from "./safeCallback"; export * from "./asyncSafeCallback"; export * from "./expect"; export * from "./matchInformation"; export * from "./matchInformationOtherwise"; export * from "./keepAsRightByInformation"; export * from "./keepAsRightSelection"; export * from "./unwrapByInformation"; export * from "./unwrapByInformationOrThrow"; export * from "./unwrapSelection"; export * from "./unwrapSelectionOrThrow"; export * from "./forwardAssertsSelection";