Pattern: Use of type literal
Issue: -
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.
Pattern: Use of type literal
Issue: -
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.