Answers for "typescript for loop converts type to any"

4

typescript for loop

for (let i = 0; i < 3; i++) {
  console.log ("Block statement execution no." + i);
}
Posted by: Guest on December-07-2020
1

loop type in typescript

export const markets = ['au', 'br', 'de'] as const;
export type Market = typeof markets[number];

markets.forEach((market: Market) => {
    console.log(market);
});
Posted by: Guest on August-20-2021

Code answers related to "typescript for loop converts type to any"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language