Skip to content

Commit 785cc8b

Browse files
paulstelzerJosh Crowther
authored andcommitted
Fix #787 (#788)
Generic type 'Observer' requires 1 type argument(s).
1 parent 6003c32 commit 785cc8b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/auth-types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,12 +268,12 @@ export class FirebaseAuth {
268268
languageCode: string | null;
269269
settings: AuthSettings;
270270
onAuthStateChanged(
271-
nextOrObserver: Observer<any, any> | ((a: User | null) => any),
271+
nextOrObserver: Observer<any> | ((a: User | null) => any),
272272
error?: (a: Error) => any,
273273
completed?: Unsubscribe
274274
): Unsubscribe;
275275
onIdTokenChanged(
276-
nextOrObserver: Observer<any, any> | ((a: User | null) => any),
276+
nextOrObserver: Observer<any> | ((a: User | null) => any),
277277
error?: (a: Error) => any,
278278
completed?: Unsubscribe
279279
): Unsubscribe;

packages/storage-types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export interface UploadTask {
7777
on(
7878
event: TaskEvent,
7979
nextOrObserver?:
80-
| Observer<UploadTaskSnapshot, Error>
80+
| Observer<UploadTaskSnapshot>
8181
| null
8282
| ((a: UploadTaskSnapshot) => any),
8383
error?: ((a: Error) => any) | null,

0 commit comments

Comments
 (0)