Skip to content

Commit f5800a1

Browse files
committed
fix(storage): make TaskSnapshotObserver methods optional
1 parent 253281d commit f5800a1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/firebase-storage/common.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ export enum TaskState {
1010
}
1111

1212
export interface TaskSnapshotObserver {
13-
complete: () => void;
14-
error: (error: FirebaseError) => void;
15-
next: (taskSnapshot: ITaskSnapshot) => void;
13+
complete?: () => void;
14+
error?: (error: FirebaseError) => void;
15+
next?: (taskSnapshot: ITaskSnapshot) => void;
1616
}
1717

1818
export interface ITaskSnapshot {

0 commit comments

Comments
 (0)