I was trying to use Omit utility type to create a mapped type and it was giving me an error. Please consider the example below. The Problem I have a type with union literals like this type something = 'abc' | 'bcd' | 'cde' | 'def'; I wanted to creat...

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!