Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/schungx/Dojo-TypeScript
Using Dojo 1 with Microsoft TypeScript
https://github.com/schungx/Dojo-TypeScript
Last synced: about 2 months ago
JSON representation
Using Dojo 1 with Microsoft TypeScript
- Host: GitHub
- URL: https://github.com/schungx/Dojo-TypeScript
- Owner: schungx
- License: mit
- Archived: true
- Created: 2013-05-23T04:52:51.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2016-02-29T06:56:38.000Z (over 8 years ago)
- Last Synced: 2024-02-01T22:08:48.563Z (5 months ago)
- Homepage:
- Size: 270 KB
- Stars: 14
- Watchers: 8
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-dojo - Dojo-TypeScript - Using Dojo 1.9 AMD-style with Microsoft TypeScript 0.9.5 (TypeScript)
README
NOTE: This repository is deprecated.
====================================Use the official Dojo Typings at https://github.com/dojo/typings.
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 definitionsDojox modules are *not* done at the moment.
And of course, contributions are *heartily* welcomed! :-)