Last active
May 16, 2023 16:36
-
-
Save wolak041/3169f48ccbdd50c333a3442ddad59670 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type IsNumber<T> = T extends number ? true : false; | |
// true | |
type Example2 = IsNumber<100> | |
// false | |
type Example1 = IsNumber<RegExp> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment