Closed BwehaaFox closed 6 days ago
The signature for ui container probably needs to be an HTMLElement, rather than just Element.
That is, for components of the old format, instead of the optional Args
interface like:
interface Args {
name: string;
}
export default class extends Component<Args>
Do I need to declaratively specify a signature like this for validation to work correctly?
interface Signature {
Args: {
name: string;
};
Element: HTMLElement;
}
export default class extends Component<Signature>
Yes, you need the full signature, as in your second code snippet.
Also, this Android feature is amazing!
Sorry, I forgot to translate the text in advance 😅. English is not at a sufficient level to formulate the primary thought in it, I’ll correct it now
I agree, built-in translation is indispensable
no worries!! I meant for the other non-russian-speaking folks -- glad you're problem is solved!
After installing glint in our project, generally valid vscode works well, except for one thing. If I import a component and try to give it, for example, a
class
attribute, it is flagged as an error:This works with any attribute without
@
on using...attributes
I saw in examples that there should be no errors with this, so I don’t understand where it comes fromIf you disable the vscode plugin, there is no error, no validation, so I assumed it was related to this addon