Answers for "Await type generic"

0

Await type generic

type Await<Type> = Type extends Promise<infer Value> ? Await<Value> : Type
Posted by: Guest on July-31-2021

Browse Popular Code Answers by Language