UNPKG

@daiso-tech/core

Version:

The library offers flexible, framework-agnostic solutions for modern web applications, built on adaptable components that integrate seamlessly with popular frameworks like Next Js.

36 lines (35 loc) 621 B
/** * @module Utilities */ /** * @internal */ export declare const OPTION: { readonly SOME: "some"; readonly NONE: "none"; }; /** * @internal */ export type OptionSome<TValue = unknown> = { type: (typeof OPTION)["SOME"]; value: TValue; }; /** * @internal */ export type OptionNone = { type: (typeof OPTION)["NONE"]; }; /** * @internal */ export type Option<TValue = unknown> = OptionSome<TValue> | OptionNone; /** * @internal */ export declare function optionSome<TValue = unknown>(value: TValue): OptionSome<TValue>; /** * @internal */ export declare function optionNone(): OptionNone;