Skip to content

Commit 3b59b27

Browse files
blakeffacebook-github-bot
authored andcommitted
fix rxjs flow types linting warnings (facebook#44719)
Summary: Pull Request resolved: facebook#44719 Removed shadowing of generic values, which would cause warnings. Changelog: [Internal] Reviewed By: cipolleschi Differential Revision: D57915364 fbshipit-source-id: 6abf68a62fca88687343ac5677ac905e87220a91
1 parent 32b5c96 commit 3b59b27

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

flow-typed/npm/rxjs_v6.x.x.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,9 @@ declare class rxjs$Observable<T> implements rxjs$Subscribable<T> {
211211
op9: rxjs$OperatorFunction<H, I>,
212212
...operations: rxjs$OperatorFunction<any, any>[]
213213
): rxjs$Observable<{...}>;
214-
toPromise<T>(): Promise<T>;
215-
toPromise<T>(PromiseCtor: typeof Promise): Promise<T>;
216-
toPromise<T>(PromiseCtor: typeof Promise.constructor): Promise<T>;
214+
toPromise(): Promise<T>;
215+
toPromise(PromiseCtor: typeof Promise): Promise<T>;
216+
toPromise(PromiseCtor: typeof Promise.constructor): Promise<T>;
217217
}
218218

219219
declare class rxjs$Subscription implements rxjs$SubscriptionLike {
@@ -238,11 +238,11 @@ declare class rxjs$Subscriber<T>
238238
extends rxjs$Subscription
239239
implements rxjs$Observer<T>
240240
{
241-
static create<T>(
242-
next?: (x?: T) => void,
241+
static create<U>(
242+
next?: (x?: U) => void,
243243
error?: (e?: any) => void,
244244
complete?: () => void,
245-
): rxjs$Subscriber<T>;
245+
): rxjs$Subscriber<U>;
246246
// @internal
247247
syncErrorValue: any;
248248
// @internal
@@ -327,8 +327,8 @@ declare class rxjs$Notification<T> {
327327
complete?: () => void,
328328
): any;
329329
toObservable(): rxjs$Observable<T>;
330-
static createNext<T>(value: T): rxjs$Notification<T>;
331-
static createError<T>(err?: any): rxjs$Notification<T>;
330+
static createNext<U>(value: U): rxjs$Notification<U>;
331+
static createError<U>(err?: any): rxjs$Notification<U>;
332332
static createComplete(): rxjs$Notification<any>;
333333
}
334334

@@ -1793,7 +1793,7 @@ declare module 'rxjs' {
17931793
delay?: number,
17941794
): any;
17951795
_execute(state: T, delay: number): any;
1796-
static sortActions<T>(a: VirtualAction<T>, b: VirtualAction<T>): 1 | -1 | 0;
1796+
static sortActions<U>(a: VirtualAction<U>, b: VirtualAction<U>): 1 | -1 | 0;
17971797
}
17981798

17991799
declare class Scheduler implements rxjs$SchedulerLike {

0 commit comments

Comments
 (0)