From fed842838c1d0c7ef1c2643c68454e8f46467042 Mon Sep 17 00:00:00 2001 From: Marko Kaznovac Date: Sat, 26 Dec 2020 16:38:55 +0100 Subject: [PATCH] declaration for onDone on autoPagingEach and autoPagingToArray --- types/lib.d.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/types/lib.d.ts b/types/lib.d.ts index a11983264a..bf9c9ecc9b 100644 --- a/types/lib.d.ts +++ b/types/lib.d.ts @@ -190,10 +190,14 @@ declare module 'stripe' { extends Promise>>, AsyncIterableIterator { autoPagingEach( - handler: (item: T) => boolean | void | Promise + handler: (item: T) => boolean | void | Promise, + onDone?: (err: any) => void ): Promise; - autoPagingToArray(opts: {limit: number}): Promise>; + autoPagingToArray( + opts: {limit: number}, + onDone?: (err: any) => void + ): Promise>; } /**