Skip to content

Commit d66c2ba

Browse files
committed
fix(storage): correct UploadTask Example 3 docs
Fixes #7859
1 parent 8e26a55 commit d66c2ba

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

packages/storage/src/public-types.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -352,15 +352,6 @@ export interface UploadTask {
352352
* // Stop after receiving one update.
353353
* unsubscribe();
354354
* });
355-
*
356-
* // This code is equivalent to the above.
357-
* var handle = uploadTask.on(firebase.storage.TaskEvent.STATE_CHANGED);
358-
* unsubscribe = handle(function(snapshot) {
359-
* var percent = snapshot.bytesTransferred / snapshot.totalBytes * 100;
360-
* console.log(percent + "% done");
361-
* // Stop after receiving one update.
362-
* unsubscribe();
363-
* });
364355
* ```
365356
*
366357
* @param event - The type of event to listen for.

0 commit comments

Comments
 (0)