Coder Social home page Coder Social logo

Comments (4)

GlassBricks avatar GlassBricks commented on May 29, 2024

I think the types field is meant to provide types if you have a javascript npm package (with a main.js), so typescript knows about the types when you import "package". typed-factorio has no executable files, so types wouldn't be appropriate.

Out of curiosity, what tool are you trying to use? There might be another way to specify types.

from typed-factorio.

aSemy avatar aSemy commented on May 29, 2024

I wanted to try Dukat, along with Gradle https://github.com/Kotlin/dukat. I've managed to manually specify the typed-factorio .d.ts files before, but it's automatic if package.json has types defined :)

from typed-factorio.

GlassBricks avatar GlassBricks commented on May 29, 2024

A kotlin-typescript-lua pipeline? interesting...

I'm not sure dukat currently supports "global" declarations as typed-factorio does, however we can try it anyways. I've just released version 0.11.0-packagetypes-1 which adds the types field. Let me know how it goes. If it works well I'll add it to the main versions as well.

from typed-factorio.

GlassBricks avatar GlassBricks commented on May 29, 2024

Closing due to inactivity.

If the experiment above shows promise, I'll reopen this issue.

from typed-factorio.

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.