(options?: ListOptions)
| 433 | } |
| 434 | |
| 435 | list(options?: ListOptions): Promise<ListResult> { |
| 436 | return new Promise((resolve, reject) => { |
| 437 | if (options?.pageToken) { |
| 438 | this.native.listWithMaxResultsPageTokenCompletion(options?.maxResults ?? 1000, options.pageToken, (result, error) => { |
| 439 | if (error) { |
| 440 | reject(FirebaseError.fromNative(error)); |
| 441 | } else { |
| 442 | resolve(ListResult.fromNative(result)); |
| 443 | } |
| 444 | }); |
| 445 | } else { |
| 446 | this.native.listWithMaxResultsCompletion(options?.maxResults ?? 1000, (result, error) => { |
| 447 | if (error) { |
| 448 | reject(FirebaseError.fromNative(error)); |
| 449 | } else { |
| 450 | resolve(ListResult.fromNative(result)); |
| 451 | } |
| 452 | }); |
| 453 | } |
| 454 | }); |
| 455 | } |
| 456 | |
| 457 | listAll(): Promise<ListResult> { |
| 458 | return new Promise((resolve, reject) => { |
nothing calls this directly
no test coverage detected