0
나는 다음과 같이 내 TypeScipt 프로그램에 대해 forEach를 사용하려고 해요 찾을 수 없습니다타이프 라이터 이름 foreach 문
"TS2304 찾을 수없는 이름을 '대해 forEach ' "
내 tsconfig.json :
{
"compilerOptions": {
"module": "commonjs",
"target": "es5",
"noImplicitAny": false,
"sourceMap": false,
"types": [
"node"
],
"typeRoots": [
"node_modules/@types"
]
},
"exclude": [
"lib/startup.ts",
"node_modules/",
"typings/"
]
}
현재 tsconfig를 표시합니다. –
'forEach'를 호출하는 코드 스 니펫을 표시 할 수 있습니까? –
'treeChildren (tree)'의 모든 객체에서'treeForEachDF'를 실행한다고 가정합니다. 시도해 봤어 :'treeChildren (tree) .forEach (child => treeForEachDF (f, child));'? –