Why this matters
Interfaces provide better extensibility and readability compared to type aliases. Use interfaces for defining object shapes when possible.
Check if type aliases are used instead of interfaces. Interfaces provide better extensibility and readability when defining object shapes.
Interfaces provide better extensibility and readability compared to type aliases. Use interfaces for defining object shapes when possible.
Side-by-side examples engineers can pattern-match during review.
type User = {
title: string;
age: number;
};interface User {
title: string;
age: number;
}
type User = {
title: string;
age: number;
};interface User {
title: string;
age: number;
}
From the same buckets as this rule.