/** * @license * Copyright The Closure Library Authors. * SPDX-License-Identifier: Apache-2.0 */ /** * A templated class that is used when registering for events. Typical usage: * * /** @type {EventId} *\ * var myEventId = new EventId( * goog.events.getUniqueId(('someEvent')); * * // No need to cast or declare here since the compiler knows the * // correct type of 'evt' (MyEventObj). * something.listen(myEventId, function(evt) {}); * * @template T * @class * @final */ export class EventId { /** * A templated class that is used when registering for events. Typical usage: * * /** @type {EventId} *\ * var myEventId = new EventId( * goog.events.getUniqueId(('someEvent')); * * // No need to cast or declare here since the compiler knows the * // correct type of 'evt' (MyEventObj). * something.listen(myEventId, function(evt) {}); * * @param {string} eventId * @template T */ constructor(eventId: string); /** @const */ id: string; /** * @override * @return {string} */ toString(): string; }