@asaidimu/utils-database 3.1.6 → 3.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.
- package/index.d.mts +10 -2
- package/index.d.ts +10 -2
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +1 -1
package/index.d.mts
CHANGED
|
@@ -844,10 +844,18 @@ interface EventBus<TEventMap extends Record<string, any>> {
|
|
|
844
844
|
metrics: () => EventMetrics;
|
|
845
845
|
/**
|
|
846
846
|
* Clears all subscriptions and resets metrics.
|
|
847
|
-
*
|
|
847
|
+
*
|
|
848
|
+
* After calling `clear()`, the bus is fully reset and can be reused
|
|
848
849
|
* cross-tab communication is re-established if it was previously enabled.
|
|
850
|
+
*
|
|
851
|
+
* @param options - Optional configuration object.
|
|
852
|
+
* @param options.permanent - If `true`, the bus becomes permanently unusable after clearing.
|
|
853
|
+
* Defaults to `false`.
|
|
854
|
+
* @returns {void}
|
|
849
855
|
*/
|
|
850
|
-
clear: (
|
|
856
|
+
clear: (options?: {
|
|
857
|
+
permanent?: boolean;
|
|
858
|
+
}) => void;
|
|
851
859
|
}
|
|
852
860
|
/**
|
|
853
861
|
* Interface defining the metrics tracked by the EventBus.
|
package/index.d.ts
CHANGED
|
@@ -844,10 +844,18 @@ interface EventBus<TEventMap extends Record<string, any>> {
|
|
|
844
844
|
metrics: () => EventMetrics;
|
|
845
845
|
/**
|
|
846
846
|
* Clears all subscriptions and resets metrics.
|
|
847
|
-
*
|
|
847
|
+
*
|
|
848
|
+
* After calling `clear()`, the bus is fully reset and can be reused
|
|
848
849
|
* cross-tab communication is re-established if it was previously enabled.
|
|
850
|
+
*
|
|
851
|
+
* @param options - Optional configuration object.
|
|
852
|
+
* @param options.permanent - If `true`, the bus becomes permanently unusable after clearing.
|
|
853
|
+
* Defaults to `false`.
|
|
854
|
+
* @returns {void}
|
|
849
855
|
*/
|
|
850
|
-
clear: (
|
|
856
|
+
clear: (options?: {
|
|
857
|
+
permanent?: boolean;
|
|
858
|
+
}) => void;
|
|
851
859
|
}
|
|
852
860
|
/**
|
|
853
861
|
* Interface defining the metrics tracked by the EventBus.
|