quick-lint-js

Find bugs in JavaScript programs.

E0245: missing body for TypeScript interface

TypeScript interfaces require a body, which must be a list of field and method signatures surrounded by { and }. It is a syntax error to omit the body of a interface:

// Tag interfaces
interface Hidden {}
interface Unsafe

interface Logger; {
  log();
}

To fix this error, write the body of the class, including { and }:

class Hidden {}
class Unsafe {}

Alternatively, remove the stray ; before {:

interface Logger {
  log();
}

Documentation for other errors