@picked/svelte 0.0.51-next.9 → 0.0.52-next.1
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/hooks/action.d.ts +8 -8
- package/package.json +3 -3
package/dist/hooks/action.d.ts
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { Action } from '@picked/client';
|
|
2
2
|
import { Store } from 'effector';
|
|
3
3
|
/**
|
|
4
|
-
* Returns the reactive evokable action store for the given action
|
|
4
|
+
* Returns the reactive evokable action store for the given action key.
|
|
5
5
|
*
|
|
6
|
-
* @param {string}
|
|
6
|
+
* @param {string} actionKey - The registered action key.
|
|
7
7
|
* @returns {Store<() => ReturnType<Action>>} A store containing the callable action function or undefined.
|
|
8
8
|
* @example
|
|
9
9
|
* ```ts
|
|
10
|
-
* const actionStore = getAction('
|
|
10
|
+
* const actionStore = getAction('log-event')
|
|
11
11
|
* ```
|
|
12
12
|
*/
|
|
13
|
-
export declare function getAction(
|
|
13
|
+
export declare function getAction(actionKey: string): Store<() => ReturnType<Action>>;
|
|
14
14
|
/**
|
|
15
|
-
* Returns a reactive store holding the latest result of invoking the
|
|
15
|
+
* Returns a reactive store holding the latest result of invoking the keyed action.
|
|
16
16
|
* Re-evaluates automatically when the underlying action store updates.
|
|
17
17
|
*
|
|
18
|
-
* @param {string}
|
|
18
|
+
* @param {string} actionKey - The registered action key.
|
|
19
19
|
* @returns {Store<string | string[] | boolean | void | undefined>} A store containing the latest action return value.
|
|
20
20
|
* @example
|
|
21
21
|
* ```ts
|
|
22
|
-
* const result = getActionResult('
|
|
22
|
+
* const result = getActionResult('is-logged-in')
|
|
23
23
|
* ```
|
|
24
24
|
*/
|
|
25
|
-
export declare function getActionResult(
|
|
25
|
+
export declare function getActionResult(actionKey: string): import('effector').StoreWritable<string | boolean | void | string[] | undefined>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@picked/svelte",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.52-next.1",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"d3": "^7.9.0"
|
|
6
6
|
},
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"svelte-check": "^4.2.2",
|
|
25
25
|
"typedoc": "^0.28.5",
|
|
26
26
|
"typedoc-plugin-markdown": "^4.6.3",
|
|
27
|
-
"vite": "^8.0.
|
|
27
|
+
"vite": "^8.0.7",
|
|
28
28
|
"vite-plugin-dts": "^4.5.4",
|
|
29
29
|
"vitest": "^4.1.0"
|
|
30
30
|
},
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
},
|
|
89
89
|
"module": "./dist/index.js",
|
|
90
90
|
"peerDependencies": {
|
|
91
|
-
"@picked/client": "0.0.
|
|
91
|
+
"@picked/client": "0.0.52-next.1",
|
|
92
92
|
"effector": "^23.3.0",
|
|
93
93
|
"svelte": "^5.46.4"
|
|
94
94
|
},
|