Slide 59
Slide 59 text
59
// ✅ All cases are OK with --isolatedDeclarations
export const nOk: number = Math.random();
export const lOk = 1;
export function explicitReturnOk(a: number): void { }
export const colors = {
'blue': 0x0000FF,
'red': 0xFF0000,
'green': 0x00FF00,
} as const
export const directions = ["UP", "DOWN", "LEFT", "RIGHT"] as const
export const component = (props: { name: string }): string => "";
https://github.com/microsoft/TypeScript/pull/58201