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·11 days ago#aYuF9lMb#typescript#reddittypescript#code#l340#class+7 more🧰Tag tools✨Add tagIn 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