DEV Community

Discussion on: Best ways to use "Extract" utility type in Typescript

Collapse
 
tqbit profile image
tq-bit

I really liked the bit about 'Get strings containing a substring from an union'. Tbf I didn't know you could use string literals that way for TS types, especially not inside of generics.

Collapse
 
arafat4693 profile image
Arafat

Thanks, glad you learned a new thing today from the article😊

Some comments have been hidden by the post's author - find out more