webix.d.ts for TypeScript

Good Day,
The header comments in webix.d.ts say definitions for version 2.3.0. I have downloaded version Webix 4.2.

So is there a plan to support Typescript?

The latest d.ts file is for Webix 4.2
https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/webix/index.d.ts

You can install it by using

npm i @types/webix

If you have some found some link to the old version of d.ts file on our site, please post the details. We will fix the link.

Can we expect an update to version 4.3?

?

Hi mksim
the link "https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/webix/index.d.ts " seems not broken…
can you help me
thanks

Sorry i forgot
as i’m new in Webix and in github in general, when the link will be ok, what i have to do ?
my purpose is when using Visual studio code for editing Webix source, i would have syntax highlighting and auto-suggest for code completion
is this the right way ?
thanks in advance

@giocot The link has been changed, and now the correct one is https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/webix

To get started, you can check out the related Using Webix and TypeScript article for details.

@helga can we export an update to 4.3?

@helga
thanks for your reply …
two thinghs :
-1 the link “live demo” in Creating a Demo App at Using Webix and TypeScript give 404 error
-2 i tryed to follow the steps at https://blog.webix.com/typescript-types-in-webix-ui-framework/ but i just understand until at "npm install -g typescript " then nothing … can some one help me to understand the next steps 2-3-4-5 ??
i know i’m limited, but if some one can help me to understand this concepts, i would be gratefull
thank in advance
gio

Definitions are awaiting confirmation from DefinitelyTyped team and will be available through npm in few days. If you need them ASAP, grab index.d.ts from here https://github.com/mkozhukh/DefinitelyTyped/tree/webix_43/types/webix

but i just understand until at "npm install -g typescript " then nothing

Grab the final package from here -

In the projects folder run

npm install
npm run server

It is the same demo as described in the tutorial.

Thanks for the update!

webix.html.getTextSize return is defined as number, while its return should be {width:number, height:number}

Hey Thanks For The Updates !
I will try using TypeScript with Webix on the next release!

@intregal yep, I see. Releasing files from the DefinetelyTyped project doesn’t allow fast updates. Starting from Webix 5.0, d.ts file will be included in the default package.

the d.ts file seems to be missing in the webix_5.0.1_pro.zip, but can you also update the github.com DefinitelyTyped location with 5.* definition?

(for example to integrate with Welcome to Bridge.NET | Write C#. Run in a web browser.)

Right now definitions are available at https://files.webix.com/30d/4973bd477fc5e02b052a70f1c41cd567/webix.d.ts

The d.ts file will be included in the default package in the next build (Webix 5.0.3) and all following versions.

what about updated d.ts?

webix.html.getTextSize issue is not fixed

webix.html.getTextSize return is defined as number, while its return should be {width:number, height:number}