@voice-ping/cognitive-services-speech
Version:
VoicePing Cognitive Services Speech SDK for JavaScript forked from Microsoft
22 lines (21 loc) • 505 B
TypeScript
/**
* @export
* @interface IDisposable
*/
export interface IDisposable {
/**
* @returns {boolean}
*
* @memberOf IDisposable
*/
isDisposed(): boolean;
/**
* Performs cleanup operations on this instance
*
* @param {string} [reason] - optional reason for disposing the instance.
* This will be used to throw errors when a operations are performed on the disposed object.
*
* @memberOf IDisposable
*/
dispose(reason?: string): void;
}