An exposed type that is very simple, such as a primitive (string) or a builtin generic over a primitive (Array<string>), should be warned for. It is better to not expose it to decrease the API surface.
Builtin generics over more complex types, such as Record<string, SomeType> should also be warned for. It is better to expose only SomeType.
An exposed type that is very simple, such as a primitive (
string
) or a builtin generic over a primitive (Array<string>
), should be warned for. It is better to not expose it to decrease the API surface.Builtin generics over more complex types, such as
Record<string, SomeType>
should also be warned for. It is better to expose onlySomeType
.