Viewing profile — gvergnaud
gvergnaud
HN member- Joined
- Mon, Mar 15, 2021, 8:59 AM UTC
- HN karma
- 2
- Public activity
- 5 items
- HN profile
- View on Hacker News ↗
About gvergnaud
No profile information was provided.
Recent public activity
- story
-
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;…
-
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…
-
comment
Comment #26464091
Thanks! Hope you'll enjoy using it
- story