Skip to content

Commit 7679c5b

Browse files
committed
feat: integrated @matrixai/events to dispatch events for start, stop and destroy
* take note that `CreateDestroyStartStop` takes an event dictionary, this can be replaced in the future with an entire arg dictionary, this should be done along with #22 and ESM migration as it is a breaking change
1 parent 3c9688a commit 7679c5b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+3718
-91
lines changed

.eslintrc

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"message": "Use `globalThis` instead"
4040
}
4141
],
42+
"prefer-rest-params": 0,
4243
"require-yield": 0,
4344
"eqeqeq": ["error", "smart"],
4445
"spaced-comment": [

docs/assets/search.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/classes/errors.ErrorAsyncInit.html

+1
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.9389
276276
<li class="tsd-kind-namespace"><a href="../modules/createDestroy.html">create<wbr/>Destroy</a></li>
277277
<li class="tsd-kind-namespace"><a href="../modules/createDestroyStartStop.html">create<wbr/>Destroy<wbr/>Start<wbr/>Stop</a></li>
278278
<li class="current tsd-kind-namespace"><a href="../modules/errors.html">errors</a></li>
279+
<li class="tsd-kind-namespace"><a href="../modules/events.html">events</a></li>
279280
<li class="tsd-kind-namespace"><a href="../modules/startStop.html">start<wbr/>Stop</a></li>
280281
<li class="tsd-kind-namespace"><a href="../modules/types.html">types</a></li></ul></li></ul></div></details></nav>
281282
<nav class="tsd-navigation secondary menu-sticky">

docs/classes/errors.ErrorAsyncInitDestroyed.html

+1
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.9389
272272
<li class="tsd-kind-namespace"><a href="../modules/createDestroy.html">create<wbr/>Destroy</a></li>
273273
<li class="tsd-kind-namespace"><a href="../modules/createDestroyStartStop.html">create<wbr/>Destroy<wbr/>Start<wbr/>Stop</a></li>
274274
<li class="current tsd-kind-namespace"><a href="../modules/errors.html">errors</a></li>
275+
<li class="tsd-kind-namespace"><a href="../modules/events.html">events</a></li>
275276
<li class="tsd-kind-namespace"><a href="../modules/startStop.html">start<wbr/>Stop</a></li>
276277
<li class="tsd-kind-namespace"><a href="../modules/types.html">types</a></li></ul></li></ul></div></details></nav>
277278
<nav class="tsd-navigation secondary menu-sticky">

docs/classes/errors.ErrorAsyncInitNotRunning.html

+1
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.9389
272272
<li class="tsd-kind-namespace"><a href="../modules/createDestroy.html">create<wbr/>Destroy</a></li>
273273
<li class="tsd-kind-namespace"><a href="../modules/createDestroyStartStop.html">create<wbr/>Destroy<wbr/>Start<wbr/>Stop</a></li>
274274
<li class="current tsd-kind-namespace"><a href="../modules/errors.html">errors</a></li>
275+
<li class="tsd-kind-namespace"><a href="../modules/events.html">events</a></li>
275276
<li class="tsd-kind-namespace"><a href="../modules/startStop.html">start<wbr/>Stop</a></li>
276277
<li class="tsd-kind-namespace"><a href="../modules/types.html">types</a></li></ul></li></ul></div></details></nav>
277278
<nav class="tsd-navigation secondary menu-sticky">

docs/classes/errors.ErrorAsyncInitRunning.html

+1
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.9389
272272
<li class="tsd-kind-namespace"><a href="../modules/createDestroy.html">create<wbr/>Destroy</a></li>
273273
<li class="tsd-kind-namespace"><a href="../modules/createDestroyStartStop.html">create<wbr/>Destroy<wbr/>Start<wbr/>Stop</a></li>
274274
<li class="current tsd-kind-namespace"><a href="../modules/errors.html">errors</a></li>
275+
<li class="tsd-kind-namespace"><a href="../modules/events.html">events</a></li>
275276
<li class="tsd-kind-namespace"><a href="../modules/startStop.html">start<wbr/>Stop</a></li>
276277
<li class="tsd-kind-namespace"><a href="../modules/types.html">types</a></li></ul></li></ul></div></details></nav>
277278
<nav class="tsd-navigation secondary menu-sticky">

docs/classes/events.EventAsyncInit.html

+428
Large diffs are not rendered by default.

docs/classes/events.EventAsyncInitDestroy.html

+406
Large diffs are not rendered by default.

docs/classes/events.EventAsyncInitDestroyed.html

+406
Large diffs are not rendered by default.

docs/classes/events.EventAsyncInitStart.html

+406
Large diffs are not rendered by default.

docs/classes/events.EventAsyncInitStarted.html

+406
Large diffs are not rendered by default.

docs/classes/events.EventAsyncInitStop.html

+406
Large diffs are not rendered by default.

docs/classes/events.EventAsyncInitStopped.html

+406
Large diffs are not rendered by default.

docs/functions/createDestroy.CreateDestroy-1.html

+16-5
Large diffs are not rendered by default.

docs/functions/createDestroy.ready.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ <h5>key: <span class="tsd-signature-type">string</span></h5></li>
4646
<h5>descriptor: <span class="tsd-signature-type">PropertyDescriptor</span></h5></li></ul></div>
4747
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">PropertyDescriptor</span></h4></li></ul></li></ul><aside class="tsd-sources">
4848
<ul>
49-
<li>Defined in <a href="https://github.com/MatrixAI/js-async-init/blob/master/src/CreateDestroy.ts#L75">src/CreateDestroy.ts:75</a></li></ul></aside></li></ul></section></div>
49+
<li>Defined in <a href="https://github.com/MatrixAI/js-async-init/blob/master/src/CreateDestroy.ts#L87">src/CreateDestroy.ts:87</a></li></ul></aside></li></ul></section></div>
5050
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
5151
<div class="tsd-navigation settings">
5252
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
@@ -71,6 +71,7 @@ <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.9389
7171
<li class="current tsd-kind-namespace"><a href="../modules/createDestroy.html">create<wbr/>Destroy</a></li>
7272
<li class="tsd-kind-namespace"><a href="../modules/createDestroyStartStop.html">create<wbr/>Destroy<wbr/>Start<wbr/>Stop</a></li>
7373
<li class="tsd-kind-namespace"><a href="../modules/errors.html">errors</a></li>
74+
<li class="tsd-kind-namespace"><a href="../modules/events.html">events</a></li>
7475
<li class="tsd-kind-namespace"><a href="../modules/startStop.html">start<wbr/>Stop</a></li>
7576
<li class="tsd-kind-namespace"><a href="../modules/types.html">types</a></li></ul></li></ul></div></details></nav>
7677
<nav class="tsd-navigation secondary menu-sticky">

0 commit comments

Comments
 (0)