
  <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
      <title>Nostrss&#39;s Blog</title>
      <link>https://nostrss.me/blog</link>
      <description>Nostrss&#39;s Blog and Personal Site</description>
      <language>ko-kr</language>
      <managingEditor>undefined (Nostrss)</managingEditor>
      <webMaster>undefined (Nostrss)</webMaster>
      <lastBuildDate>Sun, 12 Jul 2026 10:00:00 GMT</lastBuildDate>
      <atom:link href="https://nostrss.me/tags/generics/feed.xml" rel="self" type="application/rss+xml"/>
      
  <item>
    <guid>https://nostrss.me/blog/260712-ts-generics-dynamic-function-args</guid>
    <title>제네릭으로 함수 인자를 케이스별로 바꾸기 — Advanced TypeScript</title>
    <link>https://nostrss.me/blog/260712-ts-generics-dynamic-function-args</link>
    <description>이벤트 타입에 따라 payload 가 필수이기도, 아예 없어야 하기도 한 함수. 옵셔널 인자(?)로는 이걸 표현할 수 없다. Matt Pocock 의 영상을 보고 제네릭 + 조건부 타입 + named tuple 로 함수 시그니처 자체를 동적으로 바꾸는 패턴을 정리했다.</description>
    <pubDate>Sun, 12 Jul 2026 10:00:00 GMT</pubDate>
    <author>Nostrss</author>
    <category>typescript</category><category>generics</category><category>til</category><category>matt-pocock</category>
  </item>

  <item>
    <guid>https://nostrss.me/blog/260712-ts-union-distributive-conditional-types</guid>
    <title>유니온에서 멤버 하나 지우기 — 조건부 타입의 분배 법칙 (Advanced TypeScript)</title>
    <link>https://nostrss.me/blog/260712-ts-union-distributive-conditional-types</link>
    <description>&#39;a&#39; | &#39;b&#39; | &#39;c&#39; 에서 &#39;c&#39; 만 빼고 싶다. 객체나 배열은 map 으로 순회하면 되는데, 유니온의 iterator 는 뭘까? 답은 &quot;직접 순회할 필요가 없다&quot; — 조건부 타입이 유니온을 만나면 TypeScript 가 멤버 하나하나에 자동으로 분배(distribute)해 준다. Matt Pocock 의 영상을 보고 정리했다.</description>
    <pubDate>Sun, 12 Jul 2026 11:00:00 GMT</pubDate>
    <author>Nostrss</author>
    <category>typescript</category><category>generics</category><category>til</category><category>matt-pocock</category>
  </item>

  <item>
    <guid>https://nostrss.me/blog/260712-ts-when-to-use-generics</guid>
    <title>제네릭, 언제 써야 할까 — Advanced TypeScript</title>
    <link>https://nostrss.me/blog/260712-ts-when-to-use-generics</link>
    <description>유니온 타입으로 충분한데 제네릭을 쓰고 있진 않은가? Matt Pocock 은 한 가지 질문으로 판단하라고 한다 — &quot;함수를 만드는 시점에 모든 요소를 알고 있는가?&quot; 알고 있다면 유니온, 입력에 따라 반환 타입이 달라져야 하는 순간부터 제네릭이다.</description>
    <pubDate>Sun, 12 Jul 2026 12:00:00 GMT</pubDate>
    <author>Nostrss</author>
    <category>typescript</category><category>generics</category><category>til</category><category>matt-pocock</category>
  </item>

    </channel>
  </rss>
