Closed
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...