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%2FbufferToggle.ts;h=19c5c8940e9a37250aa84e9a4583e3fdf7990503;hp=8676fa74955f8a31210f5a7cb92192a8b9539a11;hb=4d07c77cf4d78cab8639e13ddc3c22495e585b0b;hpb=b3950616b54221c40a7dab9099bda675007e5b6e diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/rxjs/src/internal/operators/bufferToggle.ts b/.config/coc/extensions/node_modules/coc-prettier/node_modules/rxjs/src/internal/operators/bufferToggle.ts index 8676fa74..19c5c894 100644 --- a/.config/coc/extensions/node_modules/coc-prettier/node_modules/rxjs/src/internal/operators/bufferToggle.ts +++ b/.config/coc/extensions/node_modules/coc-prettier/node_modules/rxjs/src/internal/operators/bufferToggle.ts @@ -87,7 +87,7 @@ class BufferToggleSubscriber extends OuterSubscriber { private contexts: Array> = []; constructor(destination: Subscriber, - private openings: SubscribableOrPromise, + openings: SubscribableOrPromise, private closingSelector: (value: O) => SubscribableOrPromise | void) { super(destination); this.add(subscribeToResult(this, openings)); @@ -104,31 +104,29 @@ class BufferToggleSubscriber extends OuterSubscriber { protected _error(err: any): void { const contexts = this.contexts; while (contexts.length > 0) { - const context = contexts.shift(); + const context = contexts.shift()!; context.subscription.unsubscribe(); - context.buffer = null; - context.subscription = null; + context.buffer = null!; + context.subscription = null!; } - this.contexts = null; + this.contexts = null!; super._error(err); } protected _complete(): void { const contexts = this.contexts; while (contexts.length > 0) { - const context = contexts.shift(); - this.destination.next(context.buffer); + const context = contexts.shift()!; + this.destination.next!(context.buffer); context.subscription.unsubscribe(); - context.buffer = null; - context.subscription = null; + context.buffer = null!; + context.subscription = null!; } - this.contexts = null; + this.contexts = null!; super._complete(); } - notifyNext(outerValue: any, innerValue: O, - outerIndex: number, innerIndex: number, - innerSub: InnerSubscriber): void { + notifyNext(outerValue: any, innerValue: O): void { outerValue ? this.closeBuffer(outerValue) : this.openBuffer(innerValue); } @@ -153,7 +151,7 @@ class BufferToggleSubscriber extends OuterSubscriber { if (contexts && context) { const { buffer, subscription } = context; - this.destination.next(buffer); + this.destination.next!(buffer); contexts.splice(contexts.indexOf(context), 1); this.remove(subscription); subscription.unsubscribe(); @@ -168,12 +166,12 @@ class BufferToggleSubscriber extends OuterSubscriber { const context = { buffer, subscription }; contexts.push(context); - const innerSubscription = subscribeToResult(this, closingNotifier, context); + const innerSubscription = subscribeToResult(this, closingNotifier, context as any); if (!innerSubscription || innerSubscription.closed) { this.closeBuffer(context); } else { - ( innerSubscription).context = context; + (innerSubscription as any).context = context; this.add(innerSubscription); subscription.add(innerSubscription);