Building Hashnode
A JavaScript enthusiast and a creator who knows how to use Keyboard, Pen, Pencil, and Gamepad to their fullest.
Markdown supported · ⌘↵ to post
I think it's the reason for keyof
You can try running the following code
type A='a' | 'b' | 'c' | 'd'
type C =keyof A;
Yolo man
This is helpful!