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

|
14
kkll7766 Nov 22, 2022
|