bastienrobert/events

View on GitHub
docs/classes/eventemitter.html

Summary

Maintainability
Test Coverage
<!doctype html>
<html class="default no-js">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>EventEmitter | @bastienrobert/events</title>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="../assets/css/main.css">
</head>
<body>
<header>
    <div class="tsd-page-toolbar">
        <div class="container">
            <div class="table-wrap">
                <div class="table-cell" id="tsd-search" data-index="../assets/js/search.js" data-base="..">
                    <div class="field">
                        <label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
                        <input id="tsd-search-field" type="text" />
                    </div>
                    <ul class="results">
                        <li class="state loading">Preparing search index...</li>
                        <li class="state failure">The search index is not available</li>
                    </ul>
                    <a href="../index.html" class="title">@bastienrobert/events</a>
                </div>
                <div class="table-cell" id="tsd-widgets">
                    <div id="tsd-filter">
                        <a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
                        <div class="tsd-filter-group">
                            <div class="tsd-select" id="tsd-filter-visibility">
                                <span class="tsd-select-label">All</span>
                                <ul class="tsd-select-list">
                                    <li data-value="public">Public</li>
                                    <li data-value="protected">Public/Protected</li>
                                    <li data-value="private" class="selected">All</li>
                                </ul>
                            </div>
                            <input type="checkbox" id="tsd-filter-inherited" checked />
                            <label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
                            <input type="checkbox" id="tsd-filter-externals" checked />
                            <label class="tsd-widget" for="tsd-filter-externals">Externals</label>
                            <input type="checkbox" id="tsd-filter-only-exported" />
                            <label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label>
                        </div>
                    </div>
                    <a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
                </div>
            </div>
        </div>
    </div>
    <div class="tsd-page-title">
        <div class="container">
            <ul class="tsd-breadcrumb">
                <li>
                    <a href="../globals.html">Globals</a>
                </li>
                <li>
                    <a href="eventemitter.html">EventEmitter</a>
                </li>
            </ul>
            <h1>Class EventEmitter</h1>
        </div>
    </div>
</header>
<div class="container container-main">
    <div class="row">
        <div class="col-8 col-content">
            <section class="tsd-panel tsd-hierarchy">
                <h3>Hierarchy</h3>
                <ul class="tsd-hierarchy">
                    <li>
                        <span class="target">EventEmitter</span>
                    </li>
                </ul>
            </section>
            <section class="tsd-panel-group tsd-index-group">
                <h2>Index</h2>
                <section class="tsd-panel tsd-index-panel">
                    <div class="tsd-index-content">
                        <section class="tsd-index-section ">
                            <h3>Properties</h3>
                            <ul class="tsd-index-list">
                                <li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="eventemitter.html#_events" class="tsd-kind-icon">_events</a></li>
                                <li class="tsd-kind-property tsd-parent-kind-class"><a href="eventemitter.html#addlistener" class="tsd-kind-icon">add<wbr>Listener</a></li>
                                <li class="tsd-kind-property tsd-parent-kind-class"><a href="eventemitter.html#removelistener" class="tsd-kind-icon">remove<wbr>Listener</a></li>
                            </ul>
                        </section>
                        <section class="tsd-index-section ">
                            <h3>Accessors</h3>
                            <ul class="tsd-index-list">
                                <li class="tsd-kind-get-signature tsd-parent-kind-class"><a href="eventemitter.html#eventnames" class="tsd-kind-icon">event<wbr>Names</a></li>
                            </ul>
                        </section>
                        <section class="tsd-index-section ">
                            <h3>Methods</h3>
                            <ul class="tsd-index-list">
                                <li class="tsd-kind-method tsd-parent-kind-class"><a href="eventemitter.html#emit" class="tsd-kind-icon">emit</a></li>
                                <li class="tsd-kind-method tsd-parent-kind-class"><a href="eventemitter.html#listenercount" class="tsd-kind-icon">listener<wbr>Count</a></li>
                                <li class="tsd-kind-method tsd-parent-kind-class"><a href="eventemitter.html#listeners" class="tsd-kind-icon">listeners</a></li>
                                <li class="tsd-kind-method tsd-parent-kind-class"><a href="eventemitter.html#off" class="tsd-kind-icon">off</a></li>
                                <li class="tsd-kind-method tsd-parent-kind-class"><a href="eventemitter.html#on" class="tsd-kind-icon">on</a></li>
                                <li class="tsd-kind-method tsd-parent-kind-class"><a href="eventemitter.html#once" class="tsd-kind-icon">once</a></li>
                                <li class="tsd-kind-method tsd-parent-kind-class"><a href="eventemitter.html#removealllisteners" class="tsd-kind-icon">remove<wbr>All<wbr>Listeners</a></li>
                            </ul>
                        </section>
                    </div>
                </section>
            </section>
            <section class="tsd-panel-group tsd-member-group ">
                <h2>Properties</h2>
                <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private">
                    <a name="_events" class="tsd-anchor"></a>
                    <h3><span class="tsd-flag ts-flagPrivate">Private</span> _events</h3>
                    <div class="tsd-signature tsd-kind-icon">_events<span class="tsd-signature-symbol">:</span> <a href="../globals.html#events" class="tsd-signature-type">Events</a></div>
                    <aside class="tsd-sources">
                        <ul>
                            <li>Defined in <a href="https://github.com/bastienrobert/events/blob/6c160ed/src/index.ts#L8">index.ts:8</a></li>
                        </ul>
                    </aside>
                </section>
                <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
                    <a name="addlistener" class="tsd-anchor"></a>
                    <h3>add<wbr>Listener</h3>
                    <div class="tsd-signature tsd-kind-icon">add<wbr>Listener<span class="tsd-signature-symbol">:</span> <a href="eventemitter.html#on" class="tsd-signature-type">on</a><span class="tsd-signature-symbol"> =&nbsp;this.on</span></div>
                    <aside class="tsd-sources">
                        <ul>
                            <li>Defined in <a href="https://github.com/bastienrobert/events/blob/6c160ed/src/index.ts#L39">index.ts:39</a></li>
                        </ul>
                    </aside>
                    <div class="tsd-comment tsd-typography">
                        <div class="lead">
                            <p>Alias for emitter.on(name, fn)</p>
                        </div>
                    </div>
                </section>
                <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
                    <a name="removelistener" class="tsd-anchor"></a>
                    <h3>remove<wbr>Listener</h3>
                    <div class="tsd-signature tsd-kind-icon">remove<wbr>Listener<span class="tsd-signature-symbol">:</span> <a href="eventemitter.html#off" class="tsd-signature-type">off</a><span class="tsd-signature-symbol"> =&nbsp;this.off</span></div>
                    <aside class="tsd-sources">
                        <ul>
                            <li>Defined in <a href="https://github.com/bastienrobert/events/blob/6c160ed/src/index.ts#L44">index.ts:44</a></li>
                        </ul>
                    </aside>
                    <div class="tsd-comment tsd-typography">
                        <div class="lead">
                            <p>Alias for emitter.off(name, fn)</p>
                        </div>
                    </div>
                </section>
            </section>
            <section class="tsd-panel-group tsd-member-group ">
                <h2>Accessors</h2>
                <section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class">
                    <a name="eventnames" class="tsd-anchor"></a>
                    <h3>event<wbr>Names</h3>
                    <ul class="tsd-signatures tsd-kind-get-signature tsd-parent-kind-class">
                        <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> eventNames<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></li>
                    </ul>
                    <ul class="tsd-descriptions">
                        <li class="tsd-description">
                            <aside class="tsd-sources">
                                <ul>
                                    <li>Defined in <a href="https://github.com/bastienrobert/events/blob/6c160ed/src/index.ts#L13">index.ts:13</a></li>
                                </ul>
                            </aside>
                            <div class="tsd-comment tsd-typography">
                                <div class="lead">
                                    <p>Returns an array listing the events for which the emitter has registered listeners</p>
                                </div>
                            </div>
                            <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></h4>
                        </li>
                    </ul>
                </section>
            </section>
            <section class="tsd-panel-group tsd-member-group ">
                <h2>Methods</h2>
                <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
                    <a name="emit" class="tsd-anchor"></a>
                    <h3>emit</h3>
                    <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
                        <li class="tsd-signature tsd-kind-icon">emit<span class="tsd-signature-symbol">(</span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, <span class="tsd-signature-symbol">...</span>args<span class="tsd-signature-symbol">: </span><a href="../globals.html#arguments" class="tsd-signature-type">Arguments</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
                    </ul>
                    <ul class="tsd-descriptions">
                        <li class="tsd-description">
                            <aside class="tsd-sources">
                                <ul>
                                    <li>Defined in <a href="https://github.com/bastienrobert/events/blob/6c160ed/src/index.ts#L107">index.ts:107</a></li>
                                </ul>
                            </aside>
                            <div class="tsd-comment tsd-typography">
                                <div class="lead">
                                    <p>Synchronously calls each of the listeners registered for the event named eventName, in the order they were registered, passing the supplied arguments to each</p>
                                </div>
                            </div>
                            <h4 class="tsd-parameters-title">Parameters</h4>
                            <ul class="tsd-parameters">
                                <li>
                                    <h5>name: <span class="tsd-signature-type">string</span></h5>
                                    <div class="tsd-comment tsd-typography">
                                        <p>name of the event</p>
                                    </div>
                                </li>
                                <li>
                                    <h5><span class="tsd-flag ts-flagRest">Rest</span> <span class="tsd-signature-symbol">...</span>args: <a href="../globals.html#arguments" class="tsd-signature-type">Arguments</a></h5>
                                </li>
                            </ul>
                            <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
                            <p>returns true if the event had listeners, false otherwise</p>
                        </li>
                    </ul>
                </section>
                <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
                    <a name="listenercount" class="tsd-anchor"></a>
                    <h3>listener<wbr>Count</h3>
                    <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
                        <li class="tsd-signature tsd-kind-icon">listener<wbr>Count<span class="tsd-signature-symbol">(</span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li>
                    </ul>
                    <ul class="tsd-descriptions">
                        <li class="tsd-description">
                            <aside class="tsd-sources">
                                <ul>
                                    <li>Defined in <a href="https://github.com/bastienrobert/events/blob/6c160ed/src/index.ts#L31">index.ts:31</a></li>
                                </ul>
                            </aside>
                            <div class="tsd-comment tsd-typography">
                                <div class="lead">
                                    <p>Returns the number of listeners listening to the given event name</p>
                                </div>
                            </div>
                            <h4 class="tsd-parameters-title">Parameters</h4>
                            <ul class="tsd-parameters">
                                <li>
                                    <h5>name: <span class="tsd-signature-type">string</span></h5>
                                    <div class="tsd-comment tsd-typography">
                                        <p>name of the event</p>
                                    </div>
                                </li>
                            </ul>
                            <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4>
                            <p>number of listeners listening to the given event name</p>
                        </li>
                    </ul>
                </section>
                <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
                    <a name="listeners" class="tsd-anchor"></a>
                    <h3>listeners</h3>
                    <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
                        <li class="tsd-signature tsd-kind-icon">listeners<span class="tsd-signature-symbol">(</span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../globals.html#event" class="tsd-signature-type">Event</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">[]</span></li>
                    </ul>
                    <ul class="tsd-descriptions">
                        <li class="tsd-description">
                            <aside class="tsd-sources">
                                <ul>
                                    <li>Defined in <a href="https://github.com/bastienrobert/events/blob/6c160ed/src/index.ts#L21">index.ts:21</a></li>
                                </ul>
                            </aside>
                            <div class="tsd-comment tsd-typography">
                                <div class="lead">
                                    <p>Returns a copy of the array of listeners for the event named eventName</p>
                                </div>
                            </div>
                            <h4 class="tsd-parameters-title">Parameters</h4>
                            <ul class="tsd-parameters">
                                <li>
                                    <h5>name: <span class="tsd-signature-type">string</span></h5>
                                    <div class="tsd-comment tsd-typography">
                                        <p>name of the event</p>
                                    </div>
                                </li>
                            </ul>
                            <h4 class="tsd-returns-title">Returns <a href="../globals.html#event" class="tsd-signature-type">Event</a><span class="tsd-signature-symbol">[]</span>
                                <span class="tsd-signature-symbol"> | </span>
                                <span class="tsd-signature-type">[]</span>
                            </h4>
                        </li>
                    </ul>
                </section>
                <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
                    <a name="off" class="tsd-anchor"></a>
                    <h3>off</h3>
                    <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
                        <li class="tsd-signature tsd-kind-icon">off<span class="tsd-signature-symbol">(</span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, fn<span class="tsd-signature-symbol">: </span><a href="../globals.html#callback" class="tsd-signature-type">Callback</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">this</span></li>
                    </ul>
                    <ul class="tsd-descriptions">
                        <li class="tsd-description">
                            <aside class="tsd-sources">
                                <ul>
                                    <li>Defined in <a href="https://github.com/bastienrobert/events/blob/6c160ed/src/index.ts#L79">index.ts:79</a></li>
                                </ul>
                            </aside>
                            <div class="tsd-comment tsd-typography">
                                <div class="lead">
                                    <p>Removes the specified listener from the listener array for the given event name</p>
                                </div>
                            </div>
                            <h4 class="tsd-parameters-title">Parameters</h4>
                            <ul class="tsd-parameters">
                                <li>
                                    <h5>name: <span class="tsd-signature-type">string</span></h5>
                                    <div class="tsd-comment tsd-typography">
                                        <p>name of the event</p>
                                    </div>
                                </li>
                                <li>
                                    <h5>fn: <a href="../globals.html#callback" class="tsd-signature-type">Callback</a></h5>
                                    <div class="tsd-comment tsd-typography">
                                        <p>callback function</p>
                                    </div>
                                </li>
                            </ul>
                            <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">this</span></h4>
                            <p>EventEmitter instance</p>
                        </li>
                    </ul>
                </section>
                <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
                    <a name="on" class="tsd-anchor"></a>
                    <h3>on</h3>
                    <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
                        <li class="tsd-signature tsd-kind-icon">on<span class="tsd-signature-symbol">(</span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, fn<span class="tsd-signature-symbol">: </span><a href="../globals.html#callback" class="tsd-signature-type">Callback</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">this</span></li>
                    </ul>
                    <ul class="tsd-descriptions">
                        <li class="tsd-description">
                            <aside class="tsd-sources">
                                <ul>
                                    <li>Defined in <a href="https://github.com/bastienrobert/events/blob/6c160ed/src/index.ts#L52">index.ts:52</a></li>
                                </ul>
                            </aside>
                            <div class="tsd-comment tsd-typography">
                                <div class="lead">
                                    <p>Adds the listener function to the end of the listeners array for the given event name</p>
                                </div>
                            </div>
                            <h4 class="tsd-parameters-title">Parameters</h4>
                            <ul class="tsd-parameters">
                                <li>
                                    <h5>name: <span class="tsd-signature-type">string</span></h5>
                                    <div class="tsd-comment tsd-typography">
                                        <p>name of the event</p>
                                    </div>
                                </li>
                                <li>
                                    <h5>fn: <a href="../globals.html#callback" class="tsd-signature-type">Callback</a></h5>
                                    <div class="tsd-comment tsd-typography">
                                        <p>callback function</p>
                                    </div>
                                </li>
                            </ul>
                            <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">this</span></h4>
                            <p>EventEmitter instance</p>
                        </li>
                    </ul>
                </section>
                <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
                    <a name="once" class="tsd-anchor"></a>
                    <h3>once</h3>
                    <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
                        <li class="tsd-signature tsd-kind-icon">once<span class="tsd-signature-symbol">(</span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, fn<span class="tsd-signature-symbol">: </span><a href="../globals.html#callback" class="tsd-signature-type">Callback</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">this</span></li>
                    </ul>
                    <ul class="tsd-descriptions">
                        <li class="tsd-description">
                            <aside class="tsd-sources">
                                <ul>
                                    <li>Defined in <a href="https://github.com/bastienrobert/events/blob/6c160ed/src/index.ts#L64">index.ts:64</a></li>
                                </ul>
                            </aside>
                            <div class="tsd-comment tsd-typography">
                                <div class="lead">
                                    <p>Adds a one-time listener function for the given event name</p>
                                </div>
                            </div>
                            <h4 class="tsd-parameters-title">Parameters</h4>
                            <ul class="tsd-parameters">
                                <li>
                                    <h5>name: <span class="tsd-signature-type">string</span></h5>
                                    <div class="tsd-comment tsd-typography">
                                        <p>name of the event</p>
                                    </div>
                                </li>
                                <li>
                                    <h5>fn: <a href="../globals.html#callback" class="tsd-signature-type">Callback</a></h5>
                                    <div class="tsd-comment tsd-typography">
                                        <p>callback function</p>
                                    </div>
                                </li>
                            </ul>
                            <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">this</span></h4>
                            <p>EventEmitter instance</p>
                        </li>
                    </ul>
                </section>
                <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
                    <a name="removealllisteners" class="tsd-anchor"></a>
                    <h3>remove<wbr>All<wbr>Listeners</h3>
                    <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
                        <li class="tsd-signature tsd-kind-icon">remove<wbr>All<wbr>Listeners<span class="tsd-signature-symbol">(</span>name<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">this</span></li>
                    </ul>
                    <ul class="tsd-descriptions">
                        <li class="tsd-description">
                            <aside class="tsd-sources">
                                <ul>
                                    <li>Defined in <a href="https://github.com/bastienrobert/events/blob/6c160ed/src/index.ts#L95">index.ts:95</a></li>
                                </ul>
                            </aside>
                            <div class="tsd-comment tsd-typography">
                                <div class="lead">
                                    <p>Removes all listeners, or those of the specified eventName</p>
                                </div>
                                <p><strong>It&#39;s a bad practice to remove listeners added elsewhere in the code</strong></p>
                            </div>
                            <h4 class="tsd-parameters-title">Parameters</h4>
                            <ul class="tsd-parameters">
                                <li>
                                    <h5><span class="tsd-flag ts-flagOptional">Optional</span> name: <span class="tsd-signature-type">string</span></h5>
                                    <div class="tsd-comment tsd-typography">
                                        <p>name of the event</p>
                                    </div>
                                </li>
                            </ul>
                            <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">this</span></h4>
                            <p>EventEmitter instance</p>
                        </li>
                    </ul>
                </section>
            </section>
        </div>
        <div class="col-4 col-menu menu-sticky-wrap menu-highlight">
            <nav class="tsd-navigation primary">
                <ul>
                    <li class="globals  ">
                        <a href="../globals.html"><em>Globals</em></a>
                    </li>
                </ul>
            </nav>
            <nav class="tsd-navigation secondary menu-sticky">
                <ul class="before-current">
                </ul>
                <ul class="current">
                    <li class="current tsd-kind-class">
                        <a href="eventemitter.html" class="tsd-kind-icon">Event<wbr>Emitter</a>
                        <ul>
                            <li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private">
                                <a href="eventemitter.html#_events" class="tsd-kind-icon">_events</a>
                            </li>
                            <li class=" tsd-kind-property tsd-parent-kind-class">
                                <a href="eventemitter.html#addlistener" class="tsd-kind-icon">add<wbr>Listener</a>
                            </li>
                            <li class=" tsd-kind-property tsd-parent-kind-class">
                                <a href="eventemitter.html#removelistener" class="tsd-kind-icon">remove<wbr>Listener</a>
                            </li>
                            <li class=" tsd-kind-get-signature tsd-parent-kind-class">
                                <a href="eventemitter.html#eventnames" class="tsd-kind-icon">event<wbr>Names</a>
                            </li>
                            <li class=" tsd-kind-method tsd-parent-kind-class">
                                <a href="eventemitter.html#emit" class="tsd-kind-icon">emit</a>
                            </li>
                            <li class=" tsd-kind-method tsd-parent-kind-class">
                                <a href="eventemitter.html#listenercount" class="tsd-kind-icon">listener<wbr>Count</a>
                            </li>
                            <li class=" tsd-kind-method tsd-parent-kind-class">
                                <a href="eventemitter.html#listeners" class="tsd-kind-icon">listeners</a>
                            </li>
                            <li class=" tsd-kind-method tsd-parent-kind-class">
                                <a href="eventemitter.html#off" class="tsd-kind-icon">off</a>
                            </li>
                            <li class=" tsd-kind-method tsd-parent-kind-class">
                                <a href="eventemitter.html#on" class="tsd-kind-icon">on</a>
                            </li>
                            <li class=" tsd-kind-method tsd-parent-kind-class">
                                <a href="eventemitter.html#once" class="tsd-kind-icon">once</a>
                            </li>
                            <li class=" tsd-kind-method tsd-parent-kind-class">
                                <a href="eventemitter.html#removealllisteners" class="tsd-kind-icon">remove<wbr>All<wbr>Listeners</a>
                            </li>
                        </ul>
                    </li>
                </ul>
                <ul class="after-current">
                    <li class=" tsd-kind-type-alias">
                        <a href="../globals.html#arguments" class="tsd-kind-icon">Arguments</a>
                    </li>
                    <li class=" tsd-kind-type-alias">
                        <a href="../globals.html#callback" class="tsd-kind-icon">Callback</a>
                    </li>
                    <li class=" tsd-kind-type-alias">
                        <a href="../globals.html#event" class="tsd-kind-icon">Event</a>
                    </li>
                    <li class=" tsd-kind-type-alias">
                        <a href="../globals.html#events" class="tsd-kind-icon">Events</a>
                    </li>
                    <li class=" tsd-kind-function">
                        <a href="../globals.html#filter" class="tsd-kind-icon">filter</a>
                    </li>
                </ul>
            </nav>
        </div>
    </div>
</div>
<footer class="with-border-bottom">
    <div class="container">
        <h2>Legend</h2>
        <div class="tsd-legend-group">
            <ul class="tsd-legend">
                <li class="tsd-kind-module"><span class="tsd-kind-icon">Module</span></li>
                <li class="tsd-kind-object-literal"><span class="tsd-kind-icon">Object literal</span></li>
                <li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li>
                <li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li>
                <li class="tsd-kind-function tsd-has-type-parameter"><span class="tsd-kind-icon">Function with type parameter</span></li>
                <li class="tsd-kind-index-signature"><span class="tsd-kind-icon">Index signature</span></li>
                <li class="tsd-kind-type-alias"><span class="tsd-kind-icon">Type alias</span></li>
                <li class="tsd-kind-type-alias tsd-has-type-parameter"><span class="tsd-kind-icon">Type alias with type parameter</span></li>
            </ul>
            <ul class="tsd-legend">
                <li class="tsd-kind-enum"><span class="tsd-kind-icon">Enumeration</span></li>
                <li class="tsd-kind-enum-member"><span class="tsd-kind-icon">Enumeration member</span></li>
                <li class="tsd-kind-property tsd-parent-kind-enum"><span class="tsd-kind-icon">Property</span></li>
                <li class="tsd-kind-method tsd-parent-kind-enum"><span class="tsd-kind-icon">Method</span></li>
            </ul>
            <ul class="tsd-legend">
                <li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li>
                <li class="tsd-kind-interface tsd-has-type-parameter"><span class="tsd-kind-icon">Interface with type parameter</span></li>
                <li class="tsd-kind-constructor tsd-parent-kind-interface"><span class="tsd-kind-icon">Constructor</span></li>
                <li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
                <li class="tsd-kind-method tsd-parent-kind-interface"><span class="tsd-kind-icon">Method</span></li>
                <li class="tsd-kind-index-signature tsd-parent-kind-interface"><span class="tsd-kind-icon">Index signature</span></li>
            </ul>
            <ul class="tsd-legend">
                <li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li>
                <li class="tsd-kind-class tsd-has-type-parameter"><span class="tsd-kind-icon">Class with type parameter</span></li>
                <li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
                <li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li>
                <li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
                <li class="tsd-kind-accessor tsd-parent-kind-class"><span class="tsd-kind-icon">Accessor</span></li>
                <li class="tsd-kind-index-signature tsd-parent-kind-class"><span class="tsd-kind-icon">Index signature</span></li>
            </ul>
            <ul class="tsd-legend">
                <li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited constructor</span></li>
                <li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li>
                <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li>
                <li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited accessor</span></li>
            </ul>
            <ul class="tsd-legend">
                <li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected property</span></li>
                <li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected method</span></li>
                <li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected accessor</span></li>
            </ul>
            <ul class="tsd-legend">
                <li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private property</span></li>
                <li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private method</span></li>
                <li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private accessor</span></li>
            </ul>
            <ul class="tsd-legend">
                <li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li>
                <li class="tsd-kind-call-signature tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li>
            </ul>
        </div>
    </div>
</footer>
<div class="container tsd-generator">
    <p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p>
</div>
<div class="overlay"></div>
<script src="../assets/js/main.js"></script>
<script>if (location.protocol == 'file:') document.write('<script src="../assets/js/search.js"><' + '/script>');</script>
</body>
</html>