Skip to content

Typesafe injections #10447

Mar 2, 2024 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

firstElementChild could be an element that does not have this property.

So you would need to tell TS that it's an element that does. Not really related to Vue, rather TS types for the DOM

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@DevKame
Comment options

@LinusBorg
Comment options

@DevKame
Comment options

@LinusBorg
Comment options

Answer selected by DevKame
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants