I have below code. Getting error SyntaxError: Missing initializer in const declaration
const manufacturers: any[] = [];
console.log('Available Products are: ');
for (const item of manufacturers) {
console.log(item.id);
}
if I change declaration to const manufacturers= [];
code works fine, but VSCode shows warning
"Variable 'manufacturers' implicitly has type 'any[]' in some locations where its type cannot be determined.
I am using node js v12.16.1 and typescript : ^2.5.3