标签: typescript
我偶然发现了一些看起来像这样的javascript代码
const { foo, test, ...props, size } = this.props;
这些变量均未在其他任何地方声明,但似乎在该声明中使用。
这到底在做什么,您能否以更像 ES6的方式重写它?
是否有与之对应的打字稿?