the tswhy logo: a question mark in a box

tswhy‽

A community effort to enrich TypeScript diagnostics.

TS1009

Trailing comma not allowed.

If an inheritance clause (extends or implements) has a trailing comma, this error is reported:

interface A {}

class B implements A {
}

Fix: Remove trailing comma

Remove the trailing comma:

interface A {}

class B implements A {
}