I've made a super-small sandbox to demonstrate what I'd like to do:
I'm a little lost as to how to approach this, I want to split out a library but have types created based on some initialiser function.
I've looked at experimentalDecorators, but am in over my head. I'd be grateful of any pointers here!
The Playground lets you write TypeScript or JavaScript online in a safe and sharable way.