true if T is excatly string, otherwise false.
true
T
string
false
IsExactlyString<number>; // false; IsExactlyString<any | string>; // false IsExactlyString<unknown | string>; // false Copy
IsExactlyString<number>; // false; IsExactlyString<any | string>; // false IsExactlyString<unknown | string>; // false
Returns
true
ifT
is excatlystring
, otherwisefalse
.Example