-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Labels
priority: P3Useful but not urgentUseful but not urgenttype: enhancementNew feature or requestNew feature or request
Milestone
Description
Right now, the events we dispatch are only described at the jsdoc level, not in any actual Closure types. For example:
/**
* @event shaka.Player.ErrorEvent
* @description Fired when a playback error occurs.
* @property {string} type
* 'error'
* @property {!shaka.util.Error} detail
* An object which contains details on the error. The error's 'category' and
* 'code' properties will identify the specific error that occurred. In an
* uncompiled build, you can also use the 'message' and 'stack' properties
* to debug.
* @exportDoc
*/
It would be ideal to make these part of the generated externs, so that projects building with Closure (and some day TypeScript (#1273)) could use these event types.
To do that, I'm not sure of the best approach. Probably, the event types should be promoted to proper types in Closure. Then the existing extern generator could pick them up and describe them.
vlinder
Metadata
Metadata
Assignees
Labels
priority: P3Useful but not urgentUseful but not urgenttype: enhancementNew feature or requestNew feature or request