00Read later0Read MoreI got a decorator to type check the generic of the class it's on and I'm way too happy about itTypeScript·SmartyPantsDJ·about 1 month ago#aYuF9lMb#typescript#reddittypescript#code#l340#class+7 more🧰Tag tools✨Add tagLong article (701 words) — no AI summary yet. Generate Article SummaryIn my framework, every handler has to write its route twice. Once in the decorator because the runtime needs the string, and once in the generic because the types need it. @Route('ban') class Ban extends Handler {} // no errors. cool.… Read more15s