You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using Vue 3 with single-file components, <script setup> and TypeScript. I would like TypeScript to report when I use an unknown component, an unknown directive or an unknown prop. It seems like the strictTemplates compiler option does exactly this.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am using Vue 3 with single-file components, <script setup> and TypeScript. I would like TypeScript to report when I use an unknown component, an unknown directive or an unknown prop. It seems like the strictTemplates compiler option does exactly this.
However, since enabling the option, fallthrough attributes are being reported as errors. Even enabling fallthroughAttributes does not seem to change anything.
How can I use fallthrough attributes with strict templates? Is this documented anywhere?
Beta Was this translation helpful? Give feedback.
All reactions