DEV Community

Discussion on: My confusions about TypeScript

 
coly010 profile image
Colum Ferry

Very interesting. I didn't realise you could combine new with typeof T params.

Thread Thread
 
kenbellows profile image
Ken Bellows

Yeah Model isn't my class, it's provided by Objection.js, an ORM library I'm using. As mentioned in the post, I need to access static properties of various subclasses of Model, so I need to pass around the classes themselves.