Skip to content

Files

Latest commit

 

History

History
13 lines (7 loc) · 389 Bytes

interface-over-type-literal.md

File metadata and controls

13 lines (7 loc) · 389 Bytes

Pattern: Use of type literal

Issue: -

Description

Prefer an interface declaration over a type literal (type T = { ... })

Rationale: Interfaces are generally preferred over type literals because interfaces can be implemented, extended and merged.

Further Reading