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

javascript - Why is typescript not restricting the type alias to adhere to it structure? - Stack Overflow

programmeradmin1浏览0评论

So, here is my code so as you can see newUser has got its property from User and is also a constant. So why does Typescript let it use the push function of arrays to push a boolean value - "True" inside the type alias when the structure restrict its?

发布评论

评论列表(0)

  1. 暂无评论