bannedTypeType '{{typeName}}' is banned by project configuration. Use the project-preferred alternative for this type.small-rules/ban-typesBan configured TypeScript utility types, defaulting to Omit in favor of Except.
Omit<T, K> doesn’t check that the keys you name exist on T. Misspell one, or rename the property
later, and Omit keeps compiling while leaving the property in. Except from
type-fest requires K to be a key of T, so the
same mistake is a type error.
That’s the only type banned by default. Use bannedTypes to add your own: an array bans the names outright,
and an object maps each banned name to the type you’d rather people reach for. Your entries are added to the
default, so Omit stays banned.
bannedTypeType '{{typeName}}' is banned by project configuration. Use the project-preferred alternative for this type.bannedTypeWithReplacementType '{{typeName}}' is banned. Use '{{replacementName}}' instead.This rule accepts one options object after the severity.
type User = { readonly name: string; readonly password: string;};
type HiddenUser = Omit<User, "password">;type User = { readonly name: string;};
type ActiveUser = Pick<User, "name">;