free bad idea: type safe DOM
check yourself before you DOMRect yourself™
7 replies
@zachleat Zach. It is too early.
@5t3ph we banked a ton of daylight this week stephanie
-
@eb oh no
@zachleat I love this stuff though. For my OpenAPI client (it's own typescript monstrosity, for the record), I plan to fully type the output URL of .compile to be exactly what it is fetching in the code (ie: /route/page?limit=10 *is* the type). Just for fun.
It's annoying how typescript really likes to throw fully typed strings into the void whenever you aren't careful (ie `("1" | "2") + ("1" | "2") -> string` instead of `"12" | "11" | "21" | "22"`
@zachleat free bad implementation: https://tweets.dwac.dev/1308542105002733568/
Probably not what you were imagining, but it's what I immediately thought of.
@develwithoutacause I mean, how dare you make something that looks useful though Doug