1

When typescript captures generics it captures them very specifically which can lead to complications.

How can I make this "LessSpecific" type dynamically return the less specific type of the provided argument?

const value: LessSpecific<'I am a string literal!'>
// Expected type of value: string

0 Answers0