Actualizacion maquina principal
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / rxjs / src / internal / util / ObjectUnsubscribedError.ts
diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/rxjs/src/internal/util/ObjectUnsubscribedError.ts b/.config/coc/extensions/node_modules/coc-prettier/node_modules/rxjs/src/internal/util/ObjectUnsubscribedError.ts
new file mode 100644 (file)
index 0000000..45d2066
--- /dev/null
@@ -0,0 +1,30 @@
+export interface ObjectUnsubscribedError extends Error {
+}
+
+export interface ObjectUnsubscribedErrorCtor {
+  new(): ObjectUnsubscribedError;
+}
+
+const ObjectUnsubscribedErrorImpl = (() => {
+  function ObjectUnsubscribedErrorImpl(this: any) {
+    Error.call(this);
+    this.message = 'object unsubscribed';
+    this.name = 'ObjectUnsubscribedError';
+    return this;
+  }
+
+  ObjectUnsubscribedErrorImpl.prototype = Object.create(Error.prototype);
+
+  return ObjectUnsubscribedErrorImpl;
+})();
+
+/**
+ * An error thrown when an action is invalid because the object has been
+ * unsubscribed.
+ *
+ * @see {@link Subject}
+ * @see {@link BehaviorSubject}
+ *
+ * @class ObjectUnsubscribedError
+ */
+export const ObjectUnsubscribedError: ObjectUnsubscribedErrorCtor = ObjectUnsubscribedErrorImpl as any;
\ No newline at end of file