react-shared-states 1.0.21 → 1.0.23
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.
|
@@ -58,7 +58,7 @@ export declare const sharedSubscriptionsApi: SharedSubscriptionsApi;
|
|
|
58
58
|
interface SharedSubscriptionCreated<T> extends SharedCreated {
|
|
59
59
|
subscriber: Subscriber<T>;
|
|
60
60
|
}
|
|
61
|
-
export declare const createSharedSubscription: <T
|
|
61
|
+
export declare const createSharedSubscription: <T>(subscriber: Subscriber<T>, scopeName?: Prefix) => SharedSubscriptionCreated<T>;
|
|
62
62
|
export type SharedSubscriptionStateReturn<T> = {
|
|
63
63
|
readonly state: NonNullable<SharedSubscriptionValue<T>>;
|
|
64
64
|
readonly trigger: () => void;
|
package/dist/main.esm.js
CHANGED
package/dist/main.min.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-shared-states",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.23",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Global state made as simple as useState, with zero config, built-in async caching, and automatic scoping.",
|
|
6
6
|
"keywords": [
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"types": "dist/index.d.ts",
|
|
18
18
|
"exports": {
|
|
19
19
|
".": {
|
|
20
|
+
"types": "./dist/index.d.ts",
|
|
20
21
|
"import": "./dist/main.esm.js",
|
|
21
|
-
"require": "./dist/main.min.js"
|
|
22
|
-
"types": "./dist/index.d.ts"
|
|
22
|
+
"require": "./dist/main.min.js"
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
"author": "Hichem Taboukouyout <hichem.taboukouyout@hichemtab-tech.me>",
|