首页 > TAG信息列表 > Awaited

[Typescript Challenges] 7. Easy - Awaited

If we have a type which is wrapped type like Promise. How we can get a type which is inside the wrapped type? For example: if we have Promise<ExampleType> how to get ExampleType? type ExampleType = Promise<string> type Result = MyAwaited<E