Skip to content

Commit adfa0f1

Browse files
committed
feat: make isAtomic parameter for batch() method optional
1 parent 4e16cbd commit adfa0f1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Api.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -540,9 +540,9 @@ export class Api {
540540
*
541541
* @returns {Promise<any[] | undefined>}
542542
*/
543-
batch(uriCollector: (batchApi: IBatchApi) => string[], isAtomic: false): Promise<any[]>
544-
batch(uriCollector: (batchApi: IBatchApi) => string[], isAtomic: true): Promise<undefined>
545-
batch(uriCollector: (batchApi: IBatchApi) => string[], isAtomic: boolean): Promise<any[] | undefined> {
543+
batch(uriCollector: (batchApi: IBatchApi) => string[], isAtomic?: false): Promise<any[]>
544+
batch(uriCollector: (batchApi: IBatchApi) => string[], isAtomic?: true): Promise<undefined>
545+
batch(uriCollector: (batchApi: IBatchApi) => string[], isAtomic?: boolean): Promise<any[] | undefined> {
546546
if (this._uriGenerationMode) {
547547
throw new Error('This method is not supported in batch mode')
548548
}

0 commit comments

Comments
 (0)