Sharing Top Content from the Angular-sphere.

DevExtreme: New TypeScript declarations and improved Angular typings (v17.2)

DevExtreme: New TypeScript declarations and improved Angular typings (v17.2) -

  • One of the things we support from the very first release of DevExtreme is TypeScript.
  • With our v17.2 release we have improved our TypeScript declarations for the DevExtreme widgets API as well as the Angular integration layer.
  • In the previous releases, most of the classes in the DevExtreme API had weakly typed properties (of type ‘any’).
  • With v17.2 we have made the DevExtreme API strongly typed which results in improved code editor hints: – – One of the cool features of TypeScript is the use of union types (‘|’ sign).
  • This allows us to specify a number of types to be used like shown in the following table: – – To make the DevExtreme API more fluent, we’ve also introduced the use of ‘type’ declarations like: – – While we were working on these developer improvements, we worked on the…

As many of you know, TypeScript and its tooling allow us to use compile-time type checks and it offers support for classes and interfaces. Because of these features, one is able to build large scale JavaScript applications. In fact Google is using TypeScript for developing Angular.

One of the things we support from the very first release of DevExtreme is TypeScript.

As many of you know, TypeScript and its tooling allow us to use compile-time type checks and it offers support for classes and interfaces. Because of these features, one is able to build large scale JavaScript applications. In fact Google is using TypeScript for developing Angular.

With our v17.2 release we have improved our TypeScript declarations for the DevExtreme widgets API as well as the Angular integration layer.

In the previous releases, most of the classes in the DevExtreme API had weakly typed properties (of type ‘any’). This means that compile time type checking always resulted in a successful build even if you try to bind a string value to a property which needs a number.

With v17.2 we have made the DevExtreme API strongly typed which results in improved code editor hints:

One of the cool features of TypeScript is the use of union types (‘|’ sign). This allows us to specify a number of types to be used like shown in the following table:

To make the DevExtreme API more fluent, we’ve also introduced the use of ‘type’ declarations like:

While we were working on these developer improvements, we worked on the IntelliSense support as well. All the…

DevExtreme: New TypeScript declarations and improved Angular typings (v17.2)

Comments are closed, but trackbacks and pingbacks are open.