@vonage/client-sdk
Version:
The Client SDK is intended to provide a ready solution for developers to build Programmable Conversation applications across multiple Channels including: Messages, Voice, SIP, websockets, and App.
20 lines (19 loc) • 608 B
TypeScript
import vonage from './vonage';
/**
* Represents an Either monad for optional properties.
*
* It can be also set via the helper functions {@link some} and {@link none}.
*/
export type Option<T> = vonage.utils.OptionJS<T>;
export declare const Option: typeof vonage.utils.OptionJS;
export declare const mapOption: <T>(value?: T | undefined) => Option<T | null>;
/**
* @param value The wrapped value
* @returns An {@link Option.Some}
*/
export declare const some: <T>(value: T) => Option<T>;
/**
*
* @returns An {@link Option.None}
*/
export declare const none: <T>() => Option<T>;