Mehul Harry's DevExpress Blog

This Blog

News


Mehul Harry is the DevExpress Web Program Manager. Follow him on twitter: @Mehulharry

Subscribe (RSS, Email)

Archives

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

Published Jul 19 2016, 02:45 PM by
Bookmark and Share

Comments

Richard White 9

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

July 20, 2016 9:08 AM

About Mehul Harry (DevExpress)

Mehul Harry is an ASP.NET technical evangelist at Developer Express. You can reach him directly at mharry@DevExpress.com. You can also follow him on Twitter: http://twitter.com/mehulharry
LIVE CHAT

Chat is one of the many ways you can contact members of the DevExpress Team.
We are available Monday-Friday between 7:30am and 4:30pm Pacific Time.

If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

FOLLOW US

DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, ASP.NET, WinForms, HTML5 or Windows 10, DevExpress tools help you build and deliver your best in the shortest time possible.

Copyright © 1998-2017 Developer Express Inc.
All trademarks or registered trademarks are property of their respective owners