cf.completefrontend

Predict the typesMedium

With noImplicitOverride on, which lines in this subclass does TypeScript report?

The project turns on noImplicitOverride, which strict doesn't include. Say every error TypeScript reports, and why.

What does TypeScript report here?
class Logger {  log(message: string) {    console.log(message);  }  flush() {}} class FileLogger extends Logger {  log(message: string) {    super.log(`[file] ${message}`);  }   override flush(force: boolean) {}   override close() {}}

Compiler options: noImplicitOverride: true

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…