← Code LabTypeScript0/50 solved · 0%
Generics · hard

38. Conditional Types

Types that depend on a condition.

Define `IsString<T>` that is `true` if `T` is `string`, else `false`.
Required in your answer: T extends string? true : false