Giter Club home page Giter Club logo

Comments (5)

gavinr avatar gavinr commented on July 22, 2024

I would appreciate this too.

from typings.

davewilton avatar davewilton commented on July 22, 2024

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.

GordonSmith avatar GordonSmith commented on July 22, 2024

Does anyone have an example of this working?

from typings.

davewilton avatar davewilton commented on July 22, 2024

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.

GordonSmith avatar GordonSmith commented on July 22, 2024

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)

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.