TypeScript Javascript patterns
I am busy creating a meteor.d.ts to support my Typescript developments on
the Meteor.js platform. Current status can be found here
With that said, I am having issues abstracting two typical javascript
patterns.
The first one Template.myTemplate.events(eventMap), where myTemplate can
be dynamically created by the user.
Second, the ability to map this to a different interface. Meteor uses the
pattern a lot. For instance, when calling Meteor.methods(..methods..), the
methods are given access to this.isSimulation() which is not visible
anywhere else.
Kind of difficult to explain, so a look at the meteor documentation may help
Any idea how to declare these two patterns?
Thank you.
No comments:
Post a Comment