Skip to content
public-library›Rules›TypeScript›Prefer type aliases over interfaces

Prefer type aliases over interfaces

Declare types with type by default. Use interface only when you need declaration merging, such as extending a third-party library's or a global type.

In the full rule