Hi Robert,

Usually, TS is quite capable of figuring out stuff like this. Even on 
classes. Sometimes it falls through though. In that case, I would create an 
interface. This is much better as using generics, and you have pretty good 
control over what's "allowed" and not.

Regards
Sander

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to