Skip to content

Commit

Permalink
feat: integrated @matrixai/events to dispatch events for start, sto…
Browse files Browse the repository at this point in the history
…p 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
  • Loading branch information
CMCDragonkai committed Sep 3, 2023
1 parent 3c9688a commit 7679c5b
Show file tree
Hide file tree
Showing 49 changed files with 3,718 additions and 91 deletions.
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"message": "Use `globalThis` instead"
}
],
"prefer-rest-params": 0,
"require-yield": 0,
"eqeqeq": ["error", "smart"],
"spaced-comment": [
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/search.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/classes/errors.ErrorAsyncInit.html
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.9389
<li class="tsd-kind-namespace"><a href="../modules/createDestroy.html">create<wbr/>Destroy</a></li>
<li class="tsd-kind-namespace"><a href="../modules/createDestroyStartStop.html">create<wbr/>Destroy<wbr/>Start<wbr/>Stop</a></li>
<li class="current tsd-kind-namespace"><a href="../modules/errors.html">errors</a></li>
<li class="tsd-kind-namespace"><a href="../modules/events.html">events</a></li>
<li class="tsd-kind-namespace"><a href="../modules/startStop.html">start<wbr/>Stop</a></li>
<li class="tsd-kind-namespace"><a href="../modules/types.html">types</a></li></ul></li></ul></div></details></nav>
<nav class="tsd-navigation secondary menu-sticky">
Expand Down
1 change: 1 addition & 0 deletions docs/classes/errors.ErrorAsyncInitDestroyed.html
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.9389
<li class="tsd-kind-namespace"><a href="../modules/createDestroy.html">create<wbr/>Destroy</a></li>
<li class="tsd-kind-namespace"><a href="../modules/createDestroyStartStop.html">create<wbr/>Destroy<wbr/>Start<wbr/>Stop</a></li>
<li class="current tsd-kind-namespace"><a href="../modules/errors.html">errors</a></li>
<li class="tsd-kind-namespace"><a href="../modules/events.html">events</a></li>
<li class="tsd-kind-namespace"><a href="../modules/startStop.html">start<wbr/>Stop</a></li>
<li class="tsd-kind-namespace"><a href="../modules/types.html">types</a></li></ul></li></ul></div></details></nav>
<nav class="tsd-navigation secondary menu-sticky">
Expand Down
1 change: 1 addition & 0 deletions docs/classes/errors.ErrorAsyncInitNotRunning.html
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.9389
<li class="tsd-kind-namespace"><a href="../modules/createDestroy.html">create<wbr/>Destroy</a></li>
<li class="tsd-kind-namespace"><a href="../modules/createDestroyStartStop.html">create<wbr/>Destroy<wbr/>Start<wbr/>Stop</a></li>
<li class="current tsd-kind-namespace"><a href="../modules/errors.html">errors</a></li>
<li class="tsd-kind-namespace"><a href="../modules/events.html">events</a></li>
<li class="tsd-kind-namespace"><a href="../modules/startStop.html">start<wbr/>Stop</a></li>
<li class="tsd-kind-namespace"><a href="../modules/types.html">types</a></li></ul></li></ul></div></details></nav>
<nav class="tsd-navigation secondary menu-sticky">
Expand Down
1 change: 1 addition & 0 deletions docs/classes/errors.ErrorAsyncInitRunning.html
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.9389
<li class="tsd-kind-namespace"><a href="../modules/createDestroy.html">create<wbr/>Destroy</a></li>
<li class="tsd-kind-namespace"><a href="../modules/createDestroyStartStop.html">create<wbr/>Destroy<wbr/>Start<wbr/>Stop</a></li>
<li class="current tsd-kind-namespace"><a href="../modules/errors.html">errors</a></li>
<li class="tsd-kind-namespace"><a href="../modules/events.html">events</a></li>
<li class="tsd-kind-namespace"><a href="../modules/startStop.html">start<wbr/>Stop</a></li>
<li class="tsd-kind-namespace"><a href="../modules/types.html">types</a></li></ul></li></ul></div></details></nav>
<nav class="tsd-navigation secondary menu-sticky">
Expand Down
428 changes: 428 additions & 0 deletions docs/classes/events.EventAsyncInit.html

Large diffs are not rendered by default.

406 changes: 406 additions & 0 deletions docs/classes/events.EventAsyncInitDestroy.html

Large diffs are not rendered by default.

406 changes: 406 additions & 0 deletions docs/classes/events.EventAsyncInitDestroyed.html

Large diffs are not rendered by default.

406 changes: 406 additions & 0 deletions docs/classes/events.EventAsyncInitStart.html

Large diffs are not rendered by default.

406 changes: 406 additions & 0 deletions docs/classes/events.EventAsyncInitStarted.html

Large diffs are not rendered by default.

406 changes: 406 additions & 0 deletions docs/classes/events.EventAsyncInitStop.html

Large diffs are not rendered by default.

406 changes: 406 additions & 0 deletions docs/classes/events.EventAsyncInitStopped.html

Large diffs are not rendered by default.

21 changes: 16 additions & 5 deletions docs/functions/createDestroy.CreateDestroy-1.html

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion docs/functions/createDestroy.ready.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ <h5>key: <span class="tsd-signature-type">string</span></h5></li>
<h5>descriptor: <span class="tsd-signature-type">PropertyDescriptor</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">PropertyDescriptor</span></h4></li></ul></li></ul><aside class="tsd-sources">
<ul>
<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>
<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>
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
<div class="tsd-navigation settings">
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
Expand All @@ -71,6 +71,7 @@ <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.9389
<li class="current tsd-kind-namespace"><a href="../modules/createDestroy.html">create<wbr/>Destroy</a></li>
<li class="tsd-kind-namespace"><a href="../modules/createDestroyStartStop.html">create<wbr/>Destroy<wbr/>Start<wbr/>Stop</a></li>
<li class="tsd-kind-namespace"><a href="../modules/errors.html">errors</a></li>
<li class="tsd-kind-namespace"><a href="../modules/events.html">events</a></li>
<li class="tsd-kind-namespace"><a href="../modules/startStop.html">start<wbr/>Stop</a></li>
<li class="tsd-kind-namespace"><a href="../modules/types.html">types</a></li></ul></li></ul></div></details></nav>
<nav class="tsd-navigation secondary menu-sticky">
Expand Down
Loading

0 comments on commit 7679c5b

Please sign in to comment.