UNPKG

happy-dom

Version:

Happy DOM is a JavaScript implementation of a web browser without its graphical user interface. It includes many web standards from WHATWG DOM and HTML.

18 lines 430 B
import Event from '../Event.js'; /** * Media Stream Track Event. */ export default class MediaStreamTrackEvent extends Event { track; /** * Constructor. * * @param type Event type. * @param [eventInit] Event init. */ constructor(type, eventInit = null) { super(type, eventInit); this.track = eventInit?.track ?? null; } } //# sourceMappingURL=MediaStreamTrackEvent.js.map