Laur's blog
Sign in Subscribe

reflect

A collection of 1 post
Scan Decorated Classes in Typescript
class

Scan Decorated Classes in Typescript

TL;DR: Make the decorator set a property in the class and look for it. While trying my hand at writing an ORM, I had a problem of initialising the database through a dummy instantiation of some models, without running an explicit command. In java, I can use code generation
Dec 21, 2016 1 min read
Page 1 of 1
Laur's blog © 2025
  • Sign up
Powered by Ghost