Comments (8)
See also dojo/meta#46 and dojo/meta#62
from typings.
@kitsonk does the move to UMD typings across our modules resolve this issue?
from typings.
It does for those packages, but wouldn't allow you to do it with Dojo 1 unless we converted to UMD.
from typings.
We could and would still use typings/typings
for dojo 1
from typings.
We could, but it makes it difficult for people to namespace dojo
, dijit
, etc. and it doesn't reflecting, typing wise, what the actual code is doing, which would access the typings in a more modular way, exactly like the way Dojo 1 works.
This ticket isn't a priority.
from typings.
Think of the poor guys out there who are just trying to whip up a small web app here and there... they don't want to bother with a build tool.
With AMD modules, said guy can just concat up the necessary module files, probably with a simple shell script or a batch file.
With UMD modules, he needs to do a bunch of transformations.
So, use a better loader (one that handles all module formats) instead.
from typings.
@schungx I think you are mis-understanding. We aren't talking about UMD
for Dojo 1, we are talking about the UMD definition format for TypeScript, where there is a file for each .js
file as part of Dojo 1. When TypeScript acquires these types, they are scoped only to match the module they refer to and don't require a global namespace
and would allow us to better model the actual behaviours of the Dojo 1 code.
from typings.
(Also, I should note that it was confusing that the TypeScript team refer to these non global definition files as UMD definition files, but we didn't have control over their choice of name)
from typings.
Related Issues (20)
- Add widget example HOT 5
- 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.