()
| 455 | } |
| 456 | |
| 457 | listAll(): Promise<ListResult> { |
| 458 | return new Promise((resolve, reject) => { |
| 459 | this.native.listAllWithCompletion((result, error) => { |
| 460 | if (error) { |
| 461 | reject(FirebaseError.fromNative(error)); |
| 462 | } else { |
| 463 | resolve(ListResult.fromNative(result)); |
| 464 | } |
| 465 | }); |
| 466 | }); |
| 467 | } |
| 468 | |
| 469 | put(data: Blob | Uint8Array | ArrayBuffer, metadata?: Metadata): Task { |
| 470 | if (data instanceof Blob) { |
nothing calls this directly
no test coverage detected