Passing an object variable vs. passing an object literal to a function in TypeScript

前端 未结 0 1625
春和景丽
春和景丽 2021-02-13 03:36

In TypeScript, if I define an interface MyInterface such as:

interface MyInterface {
  a ?: string;
}

And if I define a function

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