Type alias IsExactlyString<T>

IsExactlyString<T>: Equals<T, string>

Type Parameters

  • T

Returns

true if T is excatly string, otherwise false.

Example

 IsExactlyString<number>; //  false;
IsExactlyString<any | string>; // false
IsExactlyString<unknown | string>; // false