@byloth/core 2.1.5 → 2.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -30,10 +30,10 @@ interface CountdownEventsMap
30
30
  * ```ts
31
31
  * const countdown = new Countdown(10_000);
32
32
  *
33
- * countdown.onStart(() => { console.log("The countdown has started."); });
34
- * countdown.onTick((remainingTime) => { console.log(`The countdown has ${remainingTime}ms remaining.`); });
35
- * countdown.onStop((reason) => { console.log(`The countdown has stopped because of ${reason}.`); });
36
- * countdown.onExpire(() => { console.log("The countdown has expired."); });
33
+ * countdown.onStart(() => console.log("The countdown has started."));
34
+ * countdown.onTick((remainingTime) => console.log(`The countdown has ${remainingTime}ms remaining.`));
35
+ * countdown.onStop((reason) => console.log(`The countdown has stopped because of ${reason}.`));
36
+ * countdown.onExpire(() => console.log("The countdown has expired."));
37
37
  *
38
38
  * countdown.start();
39
39
  * ```
@@ -32,8 +32,8 @@ interface GameLoopEventsMap
32
32
  * console.log(`The game loop has been running for ${elapsedTime}ms.`);
33
33
  * });
34
34
  *
35
- * loop.onStart(() => { console.log("The game loop has started."); });
36
- * loop.onStop(() => { console.log("The game loop has stopped."); });
35
+ * loop.onStart(() => console.log("The game loop has started."));
36
+ * loop.onStop(() => console.log("The game loop has stopped."));
37
37
  *
38
38
  * loop.start();
39
39
  * ```
@@ -226,7 +226,7 @@ export default class GameLoop
226
226
  *
227
227
  * @example
228
228
  * ```ts
229
- * loop.onStart(() => { console.log("The game loop has started."); });
229
+ * loop.onStart(() => console.log("The game loop has started."));
230
230
  * ```
231
231
  *
232
232
  * ---
@@ -247,7 +247,7 @@ export default class GameLoop
247
247
  *
248
248
  * @example
249
249
  * ```ts
250
- * loop.onStop(() => { console.log("The game loop has stopped."); });
250
+ * loop.onStop(() => console.log("The game loop has stopped."));
251
251
  * ```
252
252
  *
253
253
  * ---
@@ -38,4 +38,12 @@ export type {
38
38
 
39
39
  } from "./promises/types.js";
40
40
 
41
- export type { Callback, CallbackMap, Publishable, Subscribable } from "./callbacks/types.js";
41
+ export type {
42
+ Callback,
43
+ CallbackMap,
44
+ InternalsEventsMap,
45
+ WildcardEventsMap,
46
+ Publishable,
47
+ Subscribable
48
+
49
+ } from "./callbacks/types.js";