es6 可以正常支持,但是在 ts 中这样写会报错
es6 可以正常支持,但是在 ts 中这样写会报错
|
1
tsc 编译后提示:error TS2461: Type '"hello wold"' is not an array type.
|
|
2
换下版本 4.6.4 没报错,不然 ts-ignore 。
|
|
Trim21Oct 8, 2022
4
Type '"hello"' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher.
|
|
ifdefOct 8, 2022
7

|
|
kkll7766Nov 22, 2022
14
|