Is String?

Easy
conditional types

Description:

Implement the util type IsString<T> which accepts type T and return true if it's string or false if it is not.

IsString<'abc'> // expected true IsString<12> // expected false IsString<() => void> // expected false

Code

Loading...