|
|
I know there has been discussion about events already, and a lot of hesitation in dealing with them inside .ts files, because of the various ways to implement events in JS. However, for .d.ts files, we need a way to be able to define events that objects
throw, regardless of the actual implementation.
For example, if I was trying to create a TypeScript definition for this object:
http://docs.kendoui.com/api/framework/observableobject#events, I wouldn't have a very good way to describe the EventArgs that come back from the various events, which is one of the
problems I have with JS in the first place.
Thoughts?
|
|
Coordinator
Nov 20, 2012 at 4:15 PM
|
There were some discussions on events at http://typescript.codeplex.com/discussions/400516 and
http://typescript.codeplex.com/discussions/400508. Are these similar to what you're working on?
|
|