From 3b59b2708773ba1efece2bb6b2fb2948640666ab Mon Sep 17 00:00:00 2001 From: Blake Friedman Date: Thu, 30 May 2024 08:20:00 -0700 Subject: [PATCH] fix rxjs flow types linting warnings (#44719) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/44719 Removed shadowing of generic values, which would cause warnings. Changelog: [Internal] Reviewed By: cipolleschi Differential Revision: D57915364 fbshipit-source-id: 6abf68a62fca88687343ac5677ac905e87220a91 --- flow-typed/npm/rxjs_v6.x.x.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/flow-typed/npm/rxjs_v6.x.x.js b/flow-typed/npm/rxjs_v6.x.x.js index bd130b1cbca..8963f46bf1f 100644 --- a/flow-typed/npm/rxjs_v6.x.x.js +++ b/flow-typed/npm/rxjs_v6.x.x.js @@ -211,9 +211,9 @@ declare class rxjs$Observable implements rxjs$Subscribable { op9: rxjs$OperatorFunction, ...operations: rxjs$OperatorFunction[] ): rxjs$Observable<{...}>; - toPromise(): Promise; - toPromise(PromiseCtor: typeof Promise): Promise; - toPromise(PromiseCtor: typeof Promise.constructor): Promise; + toPromise(): Promise; + toPromise(PromiseCtor: typeof Promise): Promise; + toPromise(PromiseCtor: typeof Promise.constructor): Promise; } declare class rxjs$Subscription implements rxjs$SubscriptionLike { @@ -238,11 +238,11 @@ declare class rxjs$Subscriber extends rxjs$Subscription implements rxjs$Observer { - static create( - next?: (x?: T) => void, + static create( + next?: (x?: U) => void, error?: (e?: any) => void, complete?: () => void, - ): rxjs$Subscriber; + ): rxjs$Subscriber; // @internal syncErrorValue: any; // @internal @@ -327,8 +327,8 @@ declare class rxjs$Notification { complete?: () => void, ): any; toObservable(): rxjs$Observable; - static createNext(value: T): rxjs$Notification; - static createError(err?: any): rxjs$Notification; + static createNext(value: U): rxjs$Notification; + static createError(err?: any): rxjs$Notification; static createComplete(): rxjs$Notification; } @@ -1793,7 +1793,7 @@ declare module 'rxjs' { delay?: number, ): any; _execute(state: T, delay: number): any; - static sortActions(a: VirtualAction, b: VirtualAction): 1 | -1 | 0; + static sortActions(a: VirtualAction, b: VirtualAction): 1 | -1 | 0; } declare class Scheduler implements rxjs$SchedulerLike {