@asaidimu/utils-artifacts 8.2.7 → 8.2.9
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 +5 -1
- package/index.d.ts +5 -1
- package/package.json +1 -1
package/index.d.mts
CHANGED
|
@@ -10,7 +10,7 @@ interface SubscribeOptions {
|
|
|
10
10
|
/**
|
|
11
11
|
* Utility type for representing partial updates to the state, allowing deep nesting.
|
|
12
12
|
* It makes all properties optional and applies the same transformation recursively
|
|
13
|
-
* to nested objects
|
|
13
|
+
* to nested objects, allowing for selective updates while
|
|
14
14
|
* preserving the original structure. It also includes the original type T and
|
|
15
15
|
* undefined as possibilities for the top level and nested values.
|
|
16
16
|
*/
|
|
@@ -237,6 +237,10 @@ interface DataStore<T extends object> {
|
|
|
237
237
|
* Returns a readonly snapshot of the current execution state of the store.
|
|
238
238
|
*/
|
|
239
239
|
state(): Readonly<StoreExecutionState<T>>;
|
|
240
|
+
/**
|
|
241
|
+
* Releases all resources held by the store and renders it unusable
|
|
242
|
+
*/
|
|
243
|
+
dispose(): Promise<void>;
|
|
240
244
|
}
|
|
241
245
|
|
|
242
246
|
/**
|
package/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ interface SubscribeOptions {
|
|
|
10
10
|
/**
|
|
11
11
|
* Utility type for representing partial updates to the state, allowing deep nesting.
|
|
12
12
|
* It makes all properties optional and applies the same transformation recursively
|
|
13
|
-
* to nested objects
|
|
13
|
+
* to nested objects, allowing for selective updates while
|
|
14
14
|
* preserving the original structure. It also includes the original type T and
|
|
15
15
|
* undefined as possibilities for the top level and nested values.
|
|
16
16
|
*/
|
|
@@ -237,6 +237,10 @@ interface DataStore<T extends object> {
|
|
|
237
237
|
* Returns a readonly snapshot of the current execution state of the store.
|
|
238
238
|
*/
|
|
239
239
|
state(): Readonly<StoreExecutionState<T>>;
|
|
240
|
+
/**
|
|
241
|
+
* Releases all resources held by the store and renders it unusable
|
|
242
|
+
*/
|
|
243
|
+
dispose(): Promise<void>;
|
|
240
244
|
}
|
|
241
245
|
|
|
242
246
|
/**
|