Giter Club home page Giter Club logo

Comments (9)

dasannikov avatar dasannikov commented on June 8, 2024 1

Here is the archive:
http://d.defold.com/archive/{sha1}/engine/share/ref-doc.zip

And {sha1} is from here:
http://d.defold.com/stable/info.json

You can generate it with my Python script:
https://github.com/dasannikov/DefoldTypeScript/blob/master/defold_json_to_ts.py

from defoldtypescript.

wilcoverhoeven avatar wilcoverhoeven commented on June 8, 2024 1

Thx for the reply. I'm currently evaluating DefoldTypeScript. If I will use it, I will definitely try to contribute where I can.

from defoldtypescript.

thejustinwalsh avatar thejustinwalsh commented on June 8, 2024 1

I am working on some updates to this over here @ts-defold/types although the whole thing is much more ambitious than just types.

Thanks @dasannikov for spiking this, I have some updates to the python script that I am going to be submitting a PR for over the weekend. I think it would be very valuable to keep this system up-to-date in case people have disagreeing philosophies with what I am trying to accomplish with @ts-defold.

TypeScriptToLua has made a lot of changes, and there was a considerable amount of work to get the generated types up to date.

Going to be giving you a credit on the stuff I am working on in the readme, but will be re-writing a new type generator in typescript for my projects.

from defoldtypescript.

thejustinwalsh avatar thejustinwalsh commented on June 8, 2024 1

@dasannikov this is what you are looking for https://github.com/ts-defold/type-gen 👍

from defoldtypescript.

dasannikov avatar dasannikov commented on June 8, 2024

Python script defold_json_to_ts.py generate defold.d.ts file from Defold documentation.

from defoldtypescript.

dasannikov avatar dasannikov commented on June 8, 2024

Maybe i'll prepare better way to update.

from defoldtypescript.

wilcoverhoeven avatar wilcoverhoeven commented on June 8, 2024

Ok maybe this is a stupid question, but where can I get the defold json files to generate new up to date type definitions?

from defoldtypescript.

dasannikov avatar dasannikov commented on June 8, 2024

Any commits and updates to this repo are welcome!

from defoldtypescript.

dasannikov avatar dasannikov commented on June 8, 2024

will be re-writing a new type generator in typescript for my projects.

Good idea to use TS instead of Python for generator.
It will be nice to create one npm package for all stuff including generation *.d.ts file for Defold on the fly [using some npm post-install auto script]

from defoldtypescript.

Related Issues (2)

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.