@snap/camera-kit
Version:
Camera Kit Web
13 lines • 583 B
TypeScript
import type { MonoTypeOperatorFunction } from "rxjs";
/**
* Returns an Observable that mirrors the source Observable, but will call a specified function when the source has no
* more subscribers.
*
* This is exactly like the `finalize` operator, except that the specified function will be called only when the source
* is explicitly unsubscribed.
*
* @param callback Called when the source Observable has no more subscribers.
* @returns
*/
export declare function unsubscribed<T>(callback: () => void): MonoTypeOperatorFunction<T>;
//# sourceMappingURL=unsubscribed.d.ts.map