Actualizacion maquina principal
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / rxjs / src / internal / util / ObjectUnsubscribedError.ts
1 export interface ObjectUnsubscribedError extends Error {
2 }
3
4 export interface ObjectUnsubscribedErrorCtor {
5   new(): ObjectUnsubscribedError;
6 }
7
8 const ObjectUnsubscribedErrorImpl = (() => {
9   function ObjectUnsubscribedErrorImpl(this: any) {
10     Error.call(this);
11     this.message = 'object unsubscribed';
12     this.name = 'ObjectUnsubscribedError';
13     return this;
14   }
15
16   ObjectUnsubscribedErrorImpl.prototype = Object.create(Error.prototype);
17
18   return ObjectUnsubscribedErrorImpl;
19 })();
20
21 /**
22  * An error thrown when an action is invalid because the object has been
23  * unsubscribed.
24  *
25  * @see {@link Subject}
26  * @see {@link BehaviorSubject}
27  *
28  * @class ObjectUnsubscribedError
29  */
30 export const ObjectUnsubscribedError: ObjectUnsubscribedErrorCtor = ObjectUnsubscribedErrorImpl as any;