-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
Working as IntendedThe behavior described is the intended behavior; this is not a bugThe behavior described is the intended behavior; this is not a bug
Description
TypeScript Version: 3.5.1
Search Terms:
keyof never
Code
//Expected: type k = never
//Actual : type k = string | number | symbol
type k = keyof never
Expected behavior:
keyof never
should be never
Actual behavior:
keyof never
is string|number|symbol
Intuitively, to me, if no values inhabit never
, then the set of keys is the empty set (also never
).
Playground Link:
Related Issues:
Searching "keyof never" brought up 400+ total results, so...
Metadata
Metadata
Assignees
Labels
Working as IntendedThe behavior described is the intended behavior; this is not a bugThe behavior described is the intended behavior; this is not a bug