Git Product home page Git Product logo

Comments (2)

ucarion avatar ucarion commented on August 18, 2024

No need to apologize. :-)

Your request and use-case makes total sense, and has been on my radar. The best option I think you have at the immediate moment is to use the jtd-infer tool: https://github.com/jsontypedef/json-typedef-infer -- this would require that you can somehow, for each of the TypeScript types you're interested in, get a stream of JSON instances of that type. jtd-infer can determine a schema from that information.

I realize that's not what you're asking for. The sort of tool you're asking for is, in a way, the inverse of what the tool in this repo is doing. I suspect it would be better situated in a new, different tool. We can maybe take inspiration from other tools which generate code from TypeScript source code; I fully admit that I've never used typescript as a library before, so I'm not actually sure how I'd start.

Would you be willing to help develop such a tool?

from json-typedef-codegen.

ucarion avatar ucarion commented on August 18, 2024

Just for triage purposes, I'm going to close this ticket out. Please feel free to re-open at any time. :-)

from json-typedef-codegen.

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.