Comments (6)
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.
What are the advantages over typing args
in the class itself?
E.g.
class MyComponent extends Component {
args: {
example: number;
}
}
from glimmer.js.
@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.
@tschoartschi what is the relationship between generic Component and template completion?
from glimmer.js.
@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.
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)
- Apps generated from the blueprint in `2.0.0-beta.13` do not compile
- Compatibility Error: ember-3.27, 3.28, and 4 >> Can't resolve 'ember-source/@glimmer/util.js' HOT 3
- Passing parameters to named blocks causes Parse Error HOT 2
- Current problems with the low-level API HOT 2
- @babel/[email protected] cannot be used with @glimmer/babel-preset
- setting "sideEffects": false for "@glimmer/runtime" reduces bundle size to 6kb HOT 3
- setting "sideEffects": false for "@glimmer/validator" reduces bundle size to 0.5kb HOT 1
- glimmer-babel preset failing for typescript files HOT 10
- Importing external glimmer components as children // glimmer addons
- support async logic inside ssr renderer HOT 1
- Install fails with incorrect eslint version
- `<template>` html tag is rendered incorrectly
- Todo: add tests around component destruction
- v2.0 release checklist HOT 4
- How to get the literal expression of a component argument
- @glimmer/component breaks build in embroider-safe scenarios
- cached not exported for typescript
- Using htmlSafe on strings that contain video tags leads to content not being rendered HOT 1
- Cannot read properties of undefined (reading 'name') in first line of every template HOT 5
- `@glimmer/tracking` depends on `@glimmer/validator 0.44.0, which is too old and breaks type-checking by default.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from glimmer.js.