With erasableSyntaxOnly on, which of these lines does TypeScript reject?
The project turns on erasableSyntaxOnly because Node.js runs its files directly, with type stripping. Name every error TypeScript reports.
enum Direction { Up, Down }type Size = "small" | "large";namespace Shapes { export const sides = 4;}namespace Api { export type Id = string;}class Point { private label = "point"; constructor(public x: number, public y: number) {}}declare enum Legacy { A }const size = <Size>"small";const other = "large" as Size;abstract class Shape { abstract area(): number;}Work it out first: the compiler shows every error and type.
The answer
Work out every error TypeScript reports and every type it shows, line by line. Then check.
Checking your sign-in…