admin管理员组

文章数量:1390555

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?

本文标签: javascriptWhy is typescript not restricting the type alias to adhere to it structureStack Overflow