Why do type assertions not validate as strongly as type declarations?

前端 未结 0 554
时光取名叫无心
时光取名叫无心 2021-01-13 01:14

Given the following interface:

interface Request 
{
    name: string;
    email: string;
}

I would have thought that the following lines of c

相关标签:
回答
  • 消灭零回复
提交回复
热议问题