GithubHelp home page GithubHelp logo

dojo-typescript's Introduction

Using Dojo (AMD-style) with TypeScript

This project is an attempt to use the Dojo Toolkit (version 1.7 or higher, preferrably in AMD style) with Microsoft's TypeScript (version 1.6 and up).

Older-style (i.e. non-AMD) Dojo is not supported, as there are already projects converting the old Dojo API files to TypeScript module definitions. Deprecated interfaces and features in Dojo are also not supported.

Only AMD-style Dojo is supported. If you're developing using TypeScript, chances are that it is a brand-new project and you really should be using the new Dojo style. However, you can still use Dojo AMD modules synchronously. You do not have to make your entire project AMD with asynchronous loading if what you're doing is just a simple script.

I try to make using Dojo with TypeScript as close to native TypeScript programming style as possible. But the compiled JavaScript files MUST be usable directly, not needing any post-processing. I have been able to achieve this to a certain extent.

Note

Most of Dojo Core is complete, but much of Dijit is not. I've only done a couple of modules (e.g. Menus). Type definition files for other Dijit modules can be built rather quickly using the existing modules as templates. When I have time, I'll progressively add more module type definitions

Dojox modules are not done at the moment.

And of course, contributions are heartily welcomed! :-)

dojo-typescript's People

Contributors

cwalv avatar schungx avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.