@vonage/voice
Version:
The Voice API lets you create outbound calls, control in-progress calls and get information about historical calls.
23 lines (21 loc) • 719 B
TypeScript
/**
* Checks if an object is serializable to Nexmo Call Control Objects (NCCO).
*
* @deprecated not needed anymore
*
* @param {Serializable} nccoObject - The object to check for serializability.
* @return {boolean} `true` if the object is serializable, otherwise `false`.
*/
declare function isNCCOSerializable(nccoObject: object): boolean;
/**
* Interface for objects that can be serialized to Nexmo Call Control Objects (NCCO).
*/
interface Serializable {
/**
* Serialize the object to Nexmo Call Control Objects (NCCO) format.
*
* @returns The NCCO representation of the object.
*/
serializeToNCCO(): Record<string, unknown>;
}
export { type Serializable, isNCCOSerializable };