Live data from Hacker News

Viewing profile — gvergnaud

gvergnaud

HN member
Joined
Mon, Mar 15, 2021, 8:59 AM UTC
HN karma
2
Public activity
5 items

About gvergnaud

No profile information was provided.

Recent public activity

  1. story
  2. comment
    Comment #32923988

    Actually, this won't work with union types! The definition of `Equal` I use is this one: type Equal = ( () => T extends X ? 1 : 2) extends () => T extends Y ? 1 : 2 ? true : false;…

  3. comment
    Comment #32918195

    It's actually not in the standard library, but you can write it yourself: type Expect = T; `T extends true` puts a type constraint on the parameter, which then needs to be assignab…

  4. comment
    Comment #26464091

    Thanks! Hope you'll enjoy using it

  5. story