Typescript: webix.promise doesn't contains definition of all function

Hello,

With javascript I can execute:
webix.promise.reject(myVal);

But not in typescript because some method doesn’t exists in webix.d.ts

Same issue when I have code that execute:

         const promise = webix.promise.defer();
         promise.resolve(json);
         return promise;

That is not valide in typescript

Tested with Webix 5.1.9 and 5.0.4

Regards,

Native promise implementation deprecates “defer” usage.
While webix will continue to provide this helper, you can use the official approach

const promise = new webix.promise((resolve, reject) => {
     resolve(json);
});
return promise;

This will work correctly with latest type definitions ( use Webix 5.3.1 or just grab the next file - https://files.webix.com/30d/4e41e96eeb6cc9e0363fe95748d3b850/webix.d.ts )

Thanks.