-
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
Meta issue: function helper resolution bugs #396
Comments
|
Named-args-like args have to be passed as named argsGiven this function: declare function constructLanguageTag(options: { country: string; language: string }): string; This should be legal to invoke as either of the following: {{constructLanguageTag country="US" language="en"}}
{{constructLanguageTag (hash country="US" language="en")}} However, currently only the former is accepted. |
Class args don't work in any wayGiven: class Foo {}
const someFooInstance: Foo;
declare function handleFoo(foo: Foo): string; This should be legal:
However, currently there is an error - |
Not a helper resolution bug, but something we should verify as part of overhauling As a concrete example, this component: class MyComponent extends Component<{
Args: { foo?: string };
Element: HTMLImageElement;
Blocks: { default: [] };
}> {} Should be assignable to (among other things) |
I'm opening this to track issues with function helpers that we expect will be fixed with our planned overhaul of the internal representation of invokable template entities within Glint.
The text was updated successfully, but these errors were encountered: