Angular4 Que definição de Iterable devo usar
Atualizei meu aplicativo para a versão mais recente do Angular 4 (beta-8). No entanto, continuo tendo o seguinte erro:
@angular\core\src\change_detection\differs\iterable_differs.d.ts:14: TS2304 Cannot find name 'Iterable'
Eu procurei o changelog e descobri:
Uma definição deIterable<T>
agora é necessário para compilar corretamente aplicativos Angular. Suporte paraIterable<T>
não é necessário no tempo de execução, mas uma definição de tipoIterable<T>
deve estar disponível.
O que devo usar como definição iterável aqui?
EDITAR:
tsconfig.json
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"moduleResolution": "node",
/* for reading your ts source while debugging from a browser */
"sourceMap": true,
/* the following two settings are required for angular2 annotations to work*/
"emitDecoratorMetadata": true,
"experimentalDecorators":true,
/* noImplicitAny when you want your typescript to be fully typed */
"noImplicitAny":false,
"suppressImplicitAnyIndexErrors":true,
"noFallthroughCasesInSwitch":true,
"noImplicitReturns":true,
"outDir": "./target/ts"
}