/** * Container 函子一样 */ export declare class Some { value: T; constructor(value: T); static of(value: U): Some; map(callback: (arg: T) => R): Some; } export declare class Nothing { value: T; constructor(value: T); static of(value: U): Nothing; map(callback: (arg: T) => R): this; } /** * Either 函子 */ export declare const Either: { Some: typeof Some; Nothing: typeof Nothing; };