Skip to content

Commit 0b5f392

Browse files
committed
Fix #787
1 parent 8f57b8d commit 0b5f392

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/auth-types/index.d.ts

+2-2
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

+1-1
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)