@cripty2001/utils 0.0.257 → 0.0.258
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/dist/Dispatcher.d.ts +1 -1
- package/dist/Dispatcher.js +1 -1
- package/package.json +1 -1
package/dist/Dispatcher.d.ts
CHANGED
|
@@ -30,7 +30,6 @@ export declare class Dispatcher<I, O> {
|
|
|
30
30
|
*/
|
|
31
31
|
constructor(value: Whispr<I>, f: DispatcherFunction<I, O>, DEBOUNCE_INTERVAL?: number);
|
|
32
32
|
/**
|
|
33
|
-
* @deprecated Use static constructor instead
|
|
34
33
|
* Create a new dispatcher
|
|
35
34
|
* @param value The whispr value that will trigger f call when changed. Using this pattern instead of exposing a dispatch method allow to return the full dispatcher to anyone, without having to worry about them messing it
|
|
36
35
|
* @param f The async function to call. It should return a promise that resolves to the data.
|
|
@@ -44,6 +43,7 @@ export declare class Dispatcher<I, O> {
|
|
|
44
43
|
*/
|
|
45
44
|
static create<I, O>(value: Whispr<I>, f: DispatcherFunction<I, O>, DEBOUNCE_INTERVAL?: number): [Dispatcher<I, O>, () => Promise<void>];
|
|
46
45
|
/**
|
|
46
|
+
* @deprecated Use static constructor instead
|
|
47
47
|
* Re-execute the dispatcher, ignoring both the debounce interval and the input deduplication
|
|
48
48
|
*/
|
|
49
49
|
refresh(): void;
|
package/dist/Dispatcher.js
CHANGED
|
@@ -52,7 +52,6 @@ class Dispatcher {
|
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
54
|
/**
|
|
55
|
-
* @deprecated Use static constructor instead
|
|
56
55
|
* Create a new dispatcher
|
|
57
56
|
* @param value The whispr value that will trigger f call when changed. Using this pattern instead of exposing a dispatch method allow to return the full dispatcher to anyone, without having to worry about them messing it
|
|
58
57
|
* @param f The async function to call. It should return a promise that resolves to the data.
|
|
@@ -73,6 +72,7 @@ class Dispatcher {
|
|
|
73
72
|
return [d, refresh];
|
|
74
73
|
}
|
|
75
74
|
/**
|
|
75
|
+
* @deprecated Use static constructor instead
|
|
76
76
|
* Re-execute the dispatcher, ignoring both the debounce interval and the input deduplication
|
|
77
77
|
*/
|
|
78
78
|
refresh() {
|
package/package.json
CHANGED