---
title: "mmyeon (@yarnmi) | Hashnode"
description: "mmyeon (@yarnmi) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@yarnmi"
---

@yarnmi

# mmyeon

@yarnmi · Joined March 2023

### [Conductor 워크스페이스마다 .env 파일 자동 복사하기](https://yarnmi.hashnode.dev/conductor-env?utm_source=hashnode&utm_medium=feed)

문제를 만나다 개인 프로젝트를 진행할 때 기능을 병렬로 구현하기 위해서 Conductor를 사용하고 있다. 여러 개의 워크 스페이스를 새로 만들 때마다 환경변수를 매번 수동 복사해야 하는 게 매우 귀찮았다. 워크트리 개념이 익숙하지 않아서 처음에는 워크트리 생성 시 모든 파일을 다 가져오는 줄 알았다. 워크트리의 동작 방식을 찾아보니, git에 저장된 파일만 생성된다는 걸 새로 알게 되었다. 도움 받은 블로그 글 링크 : Git에서 다수...

1 min read · [yarnmi.hashnode.dev](https://yarnmi.hashnode.dev/conductor-env?utm_source=hashnode&utm_medium=feed)

[Dec 28, 2025](https://hashnode.com/posts/conductor-env/695115c41f48b622b5631994)

### [\[ts-challenges\] Get Return Type / Omit / Readonly](https://yarnmi.hashnode.dev/ts-challenges-get-return-type-omit-readonly?utm_source=hashnode&utm_medium=feed)

Get Return Type 설계 의도 제네릭 T타입을 파라미터가 있는 함수 타입으로 정의하기 리턴 타입을 추론하기 위해 infer R 를 사용해서 타입 추론 후 리턴하기 코드 /\* \_\_\_\_\_\_\_\_\_\_\_\_\_ Your Code Here \_\_\_\_\_\_\_\_\_\_\_\_\_ \*/ type MyReturnType<T extends (...args:any\[\]) => any> = T extends (...args:any\[\])=>infer R ? R : ne...

2 min read · [yarnmi.hashnode.dev](https://yarnmi.hashnode.dev/ts-challenges-get-return-type-omit-readonly?utm_source=hashnode&utm_medium=feed)

[May 26, 2025](https://hashnode.com/posts/ts-challenges-get-return-type-omit-readonly/6833ef6a1cd94bb9c9e63bc6)

### [\[ts-challenges\] Includes / Push / Unshift / Parameters](https://yarnmi.hashnode.dev/ts-challenges-includes-push-unshift-parameters?utm_source=hashnode&utm_medium=feed)

Includes 설계 의도 튜플 타입 T를 첫 번째 요소인 Head와 나머지 요소들인 Tail로 분리해서 추론한다. Head가 제네릭 U 타입과 동일하지 않으면 Includes 타입을 Tail에 대해 재귀적으로 다시 실행하면서 다음 요소 검사하기 boolean 타입의 경우, true와 false이 모두 할당가능하니까 엄격하게 동등한지 비교하기 위해서 Equal 헬퍼함수 사용 코드 type Equal<X, Y> = (<T>() => ...

3 min read · [yarnmi.hashnode.dev](https://yarnmi.hashnode.dev/ts-challenges-includes-push-unshift-parameters?utm_source=hashnode&utm_medium=feed)

[May 23, 2025](https://hashnode.com/posts/ts-challenges-includes-push-unshift-parameters/683005ec9812132598fe1fdb)

### [\[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...

2 min read · [yarnmi.hashnode.dev](https://yarnmi.hashnode.dev/type-challenges-awaited-if-concat?utm_source=hashnode&utm_medium=feed)

[May 22, 2025](https://hashnode.com/posts/type-challenges-awaited-if-concat/682e95d2ece1fb08e0760b18)

### [\[type-challenges\] First of Array / Length of Tuple / Exclude](https://yarnmi.hashnode.dev/type-challenges-first-of-array-length-of-tuple-exclude?utm_source=hashnode&utm_medium=feed)

First of Array 설계 의도 빈 배열인 경우는 never 타입 리턴하고, 그 외는 배열의 첫 번째 요소 리턴하도록 구현 코드 type First<T extends any\[\]> = T extends \[\] ? never : T\[0\] /\* \_\_\_\_\_\_\_\_\_\_\_\_\_ Test Cases \_\_\_\_\_\_\_\_\_\_\_\_\_ \*/ import type { Equal, Expect } from '@type-challenges/utils' type cas...

2 min read · [yarnmi.hashnode.dev](https://yarnmi.hashnode.dev/type-challenges-first-of-array-length-of-tuple-exclude?utm_source=hashnode&utm_medium=feed)

[May 21, 2025](https://hashnode.com/posts/type-challenges-first-of-array-length-of-tuple-exclude/682d6d5d26bb3b1fee6f04ef)
