Interface no I prefix (ARCH3003)
هذا المحتوى غير متوفر بلغتك بعد.
Key typescript.naming.interface-no-i-prefix · Severity info · Category naming
Interfaces should not be prefixed with I. This C# habit is discouraged by the TypeScript Handbook; the type system already distinguishes interfaces from classes.
Incorrect
Section titled “Incorrect”interface IUserService { findById(id: number): User;}
interface IRepository<T> { save(entity: T): void;}Correct
Section titled “Correct”interface UserService { findById(id: number): User;}
interface Repository<T> { save(entity: T): void;}Drop the I prefix and name the interface directly after the concept it models.