@@ -78,14 +78,8 @@ abstract class AbstractRestatePromise<T> implements InternalRestatePromise<T> {
7878 // --- Promise methods
7979
8080 then < TResult1 = T , TResult2 = never > (
81- onfulfilled ?:
82- | ( ( value : T ) => TResult1 | PromiseLike < TResult1 > )
83- | null
84- ,
85- onrejected ?:
86- | ( ( reason : any ) => TResult2 | PromiseLike < TResult2 > )
87- | null
88-
81+ onfulfilled ?: ( ( value : T ) => TResult1 | PromiseLike < TResult1 > ) | null ,
82+ onrejected ?: ( ( reason : any ) => TResult2 | PromiseLike < TResult2 > ) | null
8983 ) : Promise < TResult1 | TResult2 > {
9084 this . pollingPromise =
9185 this . pollingPromise ||
@@ -96,10 +90,7 @@ abstract class AbstractRestatePromise<T> implements InternalRestatePromise<T> {
9690 }
9791
9892 catch < TResult = never > (
99- onrejected ?:
100- | ( ( reason : any ) => TResult | PromiseLike < TResult > )
101- | null
102-
93+ onrejected ?: ( ( reason : any ) => TResult | PromiseLike < TResult > ) | null
10394 ) : Promise < T | TResult > {
10495 this . pollingPromise =
10596 this . pollingPromise ||
@@ -109,7 +100,7 @@ abstract class AbstractRestatePromise<T> implements InternalRestatePromise<T> {
109100 return this . publicPromiseOrCancelPromise ( ) . catch ( onrejected ) ;
110101 }
111102
112- finally ( onfinally ?: ( ( ) => void ) | null ) : Promise < T > {
103+ finally ( onfinally ?: ( ( ) => void ) | null ) : Promise < T > {
113104 this . pollingPromise =
114105 this . pollingPromise ||
115106 this [ RESTATE_CTX_SYMBOL ] . promisesExecutor
@@ -267,28 +258,19 @@ export class RestatePendingPromise<T> implements InternalRestatePromise<T> {
267258 // --- Promise methods
268259
269260 then < TResult1 = T , TResult2 = never > (
270- onfulfilled ?:
271- | ( ( value : T ) => TResult1 | PromiseLike < TResult1 > )
272- | null
273- ,
274- onrejected ?:
275- | ( ( reason : any ) => TResult2 | PromiseLike < TResult2 > )
276- | null
277-
261+ onfulfilled ?: ( ( value : T ) => TResult1 | PromiseLike < TResult1 > ) | null ,
262+ onrejected ?: ( ( reason : any ) => TResult2 | PromiseLike < TResult2 > ) | null
278263 ) : Promise < TResult1 | TResult2 > {
279264 return pendingPromise < T > ( ) . then ( onfulfilled , onrejected ) ;
280265 }
281266
282267 catch < TResult = never > (
283- onrejected ?:
284- | ( ( reason : any ) => TResult | PromiseLike < TResult > )
285- | null
286-
268+ onrejected ?: ( ( reason : any ) => TResult | PromiseLike < TResult > ) | null
287269 ) : Promise < T | TResult > {
288270 return pendingPromise < T > ( ) . catch ( onrejected ) ;
289271 }
290272
291- finally ( onfinally ?: ( ( ) => void ) | null ) : Promise < T > {
273+ finally ( onfinally ?: ( ( ) => void ) | null ) : Promise < T > {
292274 return pendingPromise < T > ( ) . finally ( onfinally ) ;
293275 }
294276
0 commit comments