Typescript - FAQ
语法
TypeScript and Iterator: Type ‘IterableIterator‘ is not an array type
此问题出现在循环 FormData
的时候
1 | for (let pair of oriParams.entries()) { |
如果可能,在 tsconfig.json
中将目标更新到 es2015
(或更高版本)以解决错误,而不启用下层迭代
1 | { |
如果以 ES5 为目标,请在 tsconfig 中显式启用 downlevelIteration
1 | { |
语雀镜像 : Typescript - FAQ ,点此 提问
Typescript - FAQ