UNPKG

microsoft-cognitiveservices-speech-sdk

Version:
22 lines (21 loc) 505 B
/** * @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; }