-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
component
helper doesn't prohibit passing unknown args
#213
Comments
Unfortunately this is something we don't have a great deal of control over. The specific feature of the type system at play here is something called excess property checking, which only kicks in in very specific scenarios. For normal component/helper/modifier invocations, because you have to provide all required arguments at once, we're able to frame that invocation in a way that triggers TypeScript to apply EPC and warn you when you specify an unknown arg. Because of the way
|
component
helpercomponent
helper doesn't prohibit passing unknown args
Is this the same as what microsoft/TypeScript#40311 is trying to fix? |
That looks like something different. The trouble we have here with |
foo-components.ts
:qux.ts
:bar.hbs
:Only the first and the third lines give an error. The second one also should but doesn't.
The text was updated successfully, but these errors were encountered: