Skip to content

Spec inconsistency for type aliases #17287

Description

Specification, chapter 3.10:

An interface can be named in an extends or implements clause, but a type alias for an object type literal cannot.

This contradicts the actual behaviour seen in current Playground:

  • Interface cannot be used in the extends clause
  • Type alias can be used in the implements clause as well as an interface

Metadata

Metadata

Labels

SpecIssues related to the TypeScript language specification

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions