Browse Source

* Overloaded form of _then

michael 6 years ago
parent
commit
f2f782f6cc
1 changed files with 1 additions and 0 deletions
  1. 1 0
      packages/rtl/js.pas

+ 1 - 0
packages/rtl/js.pas

@@ -724,6 +724,7 @@ type
     class function resolve(value : JSValue): TJSPromise; overload;
     class function resolve(value : JSValue): TJSPromise; overload;
     class function resolve : TJSPromise; overload;
     class function resolve : TJSPromise; overload;
     function _then (onAccepted : TJSPromiseResolver) : TJSPromise; external name 'then';
     function _then (onAccepted : TJSPromiseResolver) : TJSPromise; external name 'then';
+    function _then (onAccepted,OnRejected: TJSPromiseResolver) : TJSPromise; external name 'then';
     function catch (onRejected : TJSPromiseResolver) : TJSPromise;
     function catch (onRejected : TJSPromiseResolver) : TJSPromise;
     function _finally(value : TJSPromiseFinallyHandler): TJSPromise;
     function _finally(value : TJSPromiseFinallyHandler): TJSPromise;
   end;
   end;