NotStringtype
{
toUpperCase?: never;
toLowerCase?: never;
}| Property | Type | |
|---|---|---|
.toUpperCase | never | |
.toLowerCase | never |
Type that never matches the string type.
stringitself is iterable (iterating over its individual characters) and implementsIterable<string>- Using
Iterable<string> & NotStringallows an iterable containing strings but notstringitself. - This helps catch this category of subtle errors.