X-Git-Url: https://git.josue.xyz/?p=dotfiles%2F.git;a=blobdiff_plain;f=.config%2Fcoc%2Fextensions%2Fnode_modules%2Fcoc-prettier%2Fnode_modules%2Frxjs%2Fsrc%2Finternal%2Foperators%2FrepeatWhen.ts;h=744ec4b29bc784febea4c67ecea99bdf0ed1574f;hp=ecdbe3112ef412fbf5cd745a713696158fc0fc57;hb=4d07c77cf4d78cab8639e13ddc3c22495e585b0b;hpb=b3950616b54221c40a7dab9099bda675007e5b6e diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/rxjs/src/internal/operators/repeatWhen.ts b/.config/coc/extensions/node_modules/coc-prettier/node_modules/rxjs/src/internal/operators/repeatWhen.ts index ecdbe311..744ec4b2 100644 --- a/.config/coc/extensions/node_modules/coc-prettier/node_modules/rxjs/src/internal/operators/repeatWhen.ts +++ b/.config/coc/extensions/node_modules/coc-prettier/node_modules/rxjs/src/internal/operators/repeatWhen.ts @@ -4,11 +4,8 @@ import { Observable } from '../Observable'; import { Subject } from '../Subject'; import { Subscription } from '../Subscription'; -import { OuterSubscriber } from '../OuterSubscriber'; -import { InnerSubscriber } from '../InnerSubscriber'; -import { subscribeToResult } from '../util/subscribeToResult'; - import { MonoTypeOperatorFunction, TeardownLogic } from '../types'; +import { SimpleOuterSubscriber, innerSubscribe, SimpleInnerSubscriber } from '../innerSubscribe'; /** * Returns an Observable that mirrors the source Observable with the exception of a `complete`. If the source @@ -58,11 +55,11 @@ class RepeatWhenOperator implements Operator { * @ignore * @extends {Ignored} */ -class RepeatWhenSubscriber extends OuterSubscriber { +class RepeatWhenSubscriber extends SimpleOuterSubscriber { - private notifications: Subject; - private retries: Observable; - private retriesSubscription: Subscription; + private notifications?: Subject; + private retries?: Observable; + private retriesSubscription?: Subscription; private sourceIsBeingSubscribedTo: boolean = true; constructor(destination: Subscriber, @@ -71,14 +68,12 @@ class RepeatWhenSubscriber extends OuterSubscriber { super(destination); } - notifyNext(outerValue: T, innerValue: R, - outerIndex: number, innerIndex: number, - innerSub: InnerSubscriber): void { + notifyNext(): void { this.sourceIsBeingSubscribedTo = true; this.source.subscribe(this); } - notifyComplete(innerSub: InnerSubscriber): void { + notifyComplete(): void { if (this.sourceIsBeingSubscribedTo === false) { return super.complete(); } @@ -96,7 +91,7 @@ class RepeatWhenSubscriber extends OuterSubscriber { } this._unsubscribeAndRecycle(); - this.notifications.next(); + this.notifications!.next(undefined); } } @@ -105,20 +100,20 @@ class RepeatWhenSubscriber extends OuterSubscriber { const { notifications, retriesSubscription } = this; if (notifications) { notifications.unsubscribe(); - this.notifications = null; + this.notifications = undefined; } if (retriesSubscription) { retriesSubscription.unsubscribe(); - this.retriesSubscription = null; + this.retriesSubscription = undefined; } - this.retries = null; + this.retries = undefined; } /** @deprecated This is an internal implementation detail, do not use. */ _unsubscribeAndRecycle(): Subscriber { const { _unsubscribe } = this; - this._unsubscribe = null; + this._unsubscribe = null!; super._unsubscribeAndRecycle(); this._unsubscribe = _unsubscribe; @@ -135,6 +130,6 @@ class RepeatWhenSubscriber extends OuterSubscriber { return super.complete(); } this.retries = retries; - this.retriesSubscription = subscribeToResult(this, retries); + this.retriesSubscription = innerSubscribe(retries, new SimpleInnerSubscriber(this)); } }