GithubHelp home page GithubHelp logo

Override type generation about mtt HOT 5 OPEN

codyschrank avatar codyschrank commented on July 26, 2024
Override type generation

from mtt.

Comments (5)

Psvensso avatar Psvensso commented on July 26, 2024

I started to look at this but i can't get my fork to run on my machine.
The build can't access Microsoft.CodeAnalysis.CSharp even though it's clearly there and everything is restore properly. (I'm on a win 10 machine with VS2017 pro).

I might have a look later in the week.

But please respond if guys this this is even a viable feature req.

from mtt.

CodySchrank avatar CodySchrank commented on July 26, 2024

I understand the need but currently any kind of type annotation is not feasible because the code is not compiled.

I've been considering compiling the c# to use reflection so if I do then this could be added.

from mtt.

CodySchrank avatar CodySchrank commented on July 26, 2024

I started to look at this but i can't get my fork to run on my machine.
The build can't access Microsoft.CodeAnalysis.CSharp even though it's clearly there and everything is restore properly. (I'm on a win 10 machine with VS2017 pro).

I might have a look later in the week.

But please respond if guys this this is even a viable feature req.

That was an experimental build that accidently got pushed to main. MTT doesn't actually use code analysis so I removed the references, you should now be able to restore and build the project.

from mtt.

wmwood avatar wmwood commented on July 26, 2024

I'd also love this.

It's more of a preferential thing but I'd prefer that my Guid's come down as string in TS.

Like I said it's a personal bias so being able to override that would be a nice to have.

from mtt.

CodySchrank avatar CodySchrank commented on July 26, 2024

I played around with this idea back when the issue was created and it seemed like the best approach would be using type annotations. However the code is not compiled so those annotations would have to be parsed somehow, without losing what field is supposed to be overridden and what its supposed to be overridden with. It seemed like it could get messy so I never bothered, but someone is more than welcome to add this in a PR and I would approve if it doesn't break anything.

from mtt.

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.