Comments (5)
I would appreciate this too.
from typings.
In the meantime you will probably find this helpful
https://www.sitepen.com/blog/2017/03/29/what-typescript-can-offer-to-dojo-1-x/
from typings.
Does anyone have an example of this working?
from typings.
Yes see the link above, you will find it very helpful. Basically you just need to add declareDecorator to your project and enable experimental decorators in your tsconfig.
Here is a link to a very simple example
https://www.dropbox.com/s/vmtc10dc405n39e/ExampleWidget.zip?dl=0
from typings.
Thanks for the sample - I had (finally) got something similar working myself.
The current issue I am seeing is trying to "derive" a Dojo JS class from a TypeScript Dojo Class. While this is probably just a non runner, it would greatly help in a large migration we are doing?
(Between this and https://github.com/OpenNTF/dojo-webpack-plugin we finally have a modern dev environment for the legacy wen app!!!).
from typings.
Related Issues (20)
- Missing Grunt task configuration options causes build to fail HOT 1
- Update "basicApp" example to include translation bundles
- Cannot find name ActiveXObject HOT 5
- Compile errors with TypeScript 2.4.1 HOT 3
- Issues with noimplicitany and dijit
- Typo in NumberFormatOptions definition HOT 1
- Module name dgrid/extensions/Dnd has incorrect case HOT 1
- Typings for dstore/Tree are missing HOT 1
- Intern and leadfoot cause error TS2307: Cannot find module 'dojo/Promise'.
- Errors with Typescript 2.6 using --strictFunctionTypes HOT 1
- Property 'inherited' does not exist on type <...> HOT 1
- Is the dojo/fx/Toggler functional? HOT 1
- ComboBox incorrectly typed
- declareDecorator does not bring along getters and setters
- dojox/widget/Standby typings are missing
- Incorrect declare typings
- EventedConstructor has two constructors of different types HOT 4
- Adding dojox/rpc/Service
- DocumentEvent - Cannot find name DocumentEvent HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from typings.