---
title: "Discussion on \"[type-challenges] Awaited / If / Concat\" | Hashnode"
description: "Discussion on \"[type-challenges] Awaited / If / Concat\". Awaited\n설계 의도\n\n제네릭타입 T를 PromiseLike<any> 로 정의하여서 Promise, then 메서드 가진 함수 모두 받도록 처리\n\ninfer 사용해서 PromiseLike의 내부 타입 추출\n\n다중 Promise 중첩 처리에서 최종 결과 타입 풀어내기 위해서 재귀적 조건부 타입 사용\n\n\nPromise<T> vs PromiseLike<T>\n\nPromise<T>는 Promise 객체의 전체 API를 나타내는 반면, PromiseL..."
url: "https://hashnode.com/posts/type-challenges-awaited-if-concat/682e95d2ece1fb08e0760b18"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [\[type-challenges\] Awaited / If / Concat](https://yarnmi.hashnode.dev/type-challenges-awaited-if-concat?utm_source=hashnode&utm_medium=feed)

Awaited 설계 의도 제네릭타입 T를 PromiseLike<any> 로 정의하여서 Promise, then 메서드 가진 함수 모두 받도록 처리 infer 사용해서 PromiseLike의 내부 타입 추출 다중 Promise 중첩 처리에서 최종 결과 타입 풀어내기 위해서 재귀적 조건부 타입 사용 Promise<T> vs PromiseLike<T> Promise<T>는 Promise 객체의 전체 API를 나타내는 반면, PromiseL...

May 22, 2025 · 2 min read · yarnmi.hashnode.dev  
Read the article

-   [#type-challenges](https://hashnode.com/tag/type-challenges)

## Written by

[mmyeon](https://hashnode.com/@yarnmi)

@yarnmi

  
[View profile](https://hashnode.com/@yarnmi)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
