Giter Club home page Giter Club logo

Comments (6)

tschoartschi avatar tschoartschi commented on June 29, 2024

This sounds like an interesting idea 👍 I think the best way to get this going is to create a PR. Furthermore the core-devs are very active in the Slack Channel, maybe you can get in touch with them there too.

from glimmer.js.

t-sauer avatar t-sauer commented on June 29, 2024

What are the advantages over typing args in the class itself?

E.g.

class MyComponent extends Component {
  args: {
    example: number;
  }
}

from glimmer.js.

tschoartschi avatar tschoartschi commented on June 29, 2024

@t-sauer I didn't know that it is possible to define args when there is already a get args(). I need to test if this wouldn't change behavior. If it works I also like your solution since its less overhead to write. I'm not sure which version is more sound. But type check handlebar templates, as well as code completion and IntelliSense in templates, would be a very nice feature 😃

from glimmer.js.

locks avatar locks commented on June 29, 2024

@tschoartschi what is the relationship between generic Component and template completion?

from glimmer.js.

tschoartschi avatar tschoartschi commented on June 29, 2024

@locks to be honest, I don't know. I think the idea of @dkundel sounds great and he mentioned that we could write an extension for type checking on templates. So I think it's better to ask @dkundel directly. But improving the dev-experience for templates would be awesome. This is why I wanted to start a discussion on this issue.

from glimmer.js.

dkundel avatar dkundel commented on June 29, 2024

Hey! It wouldn't be something that we would get directly out of the box but it would help setting the foundation for it. It would require Glimmer to have its own language server similar to @angular/language-server. The result could be an extension similar to this one for Angular and VS Code. It shows the concept pretty nicely.

I'll see if I can get a PR for the generic part done in the next two weeks :) holidays and stuff ^^

from glimmer.js.

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.