最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

typescript - How to use fallthrough attributes with `strictTemplates: true` in Vue.js? - Stack Overflow

programmeradmin3浏览0评论

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?

发布评论

评论列表(0)

  1. 暂无评论