阅读背景:

我可以将参数类型指定为多种类型之一,而不是打字稿中的任何类型吗?

来源:互联网 

In a method declaration in TypeScript, the parameter could be of type array of strings, booleans, or numbers. Do I have to declare it as any[] or is there a way to limit the input type as on of these three types?In a method declaration in TypeScript, the para




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: