📜  typescript for loop - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:14.686000             🧑  作者: Mango

代码示例6
export const markets = ['au', 'br', 'de'] as const;
export type Market = typeof markets[number];

markets.forEach((market: Market) => {
    console.log(market);
});