In the v16.1 release, we've added TypeScript Type Definitions for DevExpress ASP.NET WebForms and MVC controls. So now you can write your applications using TypeScript with full support for our intellisense, typechecking, and other great features of TypeScript.
A few days ago, our pull request to the DefinitelyTyped repository was accepted and our type definitions became available here: DevExpress TypeScript Type Definitions - Github.
How to get started
To use the new TypeScript support in your project, simply use one of the following options:
Option A
Install our nuget package:
DevExpress TypeScript Type Definitions - Nuget package.
This package has the latest version of our .d.ts file.
Option B
Copy the "devexpress-web.d.ts" file from our installation folder to your project. The installation folder is typically located here:
C:\Program Files (x86)\DevExpress 16.1\Components\Sources\DevExpress.Web.ASPxScriptIntelliSense\devexpress-web.d.ts
Option C
Download the "devexpress-web.d.ts" file from GitHub.
Option D
If you have the TypeScript Definition Manager installed, then use the following command:
“typings install dt~devexpress-web --global”.
Any of the above options help you to get the necessary files into your project so that you can use begin to use our Typescript definitions.
Example
You can see an example of how to use typescript with our definitions here:
DevExpress TypeScript Type Definitions - Github
This .ts file is based on the Scripts.js file from our HotelBooking.Tablet demo.
Thanks!
Your Next Great .NET App Starts Here
Year after year, .NET developers such as yourself consistently vote DevExpress products #1.
Experience the DevExpress difference for yourself and download a free 30-day trial of all our products today: DevExpress.com/trial (free support is included during your evaluation).