Created
April 4, 2022 11:00
-
-
Save ZacharyL2/165913cdc597116f45a8f0de027dc2e1 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 T1 = keyof unknown; // never | |
// `keyofStringsOnly: false` will return `string | number | symbol` | |
// `keyofStringsOnly: true` will return `string` | |
type T2 = keyof any; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment