Use TypeScript with DevExpress ASP.NET and MVC Controls (v16.1)

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

DevExpress ASP.NET TypeScript Intellisense

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).

2 comment(s)

Good Work! Giving this a go and it's been pretty easy moving over some of my work to typescript.

20 July, 2016

Link to github is broken and nuget package is quite old...2016 year

14 May, 2018

Please login or register to post comments.