@vanyamate/sec 0.2.6 → 0.2.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/README.md +3 -2
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# SEC (Store, Effect, Combine)
|
|
2
2
|
|
|
3
|
+
https://sec-docs-minimal.lovable.app/
|
|
4
|
+
|
|
3
5
|
Tiny state manager
|
|
4
6
|
|
|
5
7
|
*It may change in the future*
|
|
@@ -23,9 +25,8 @@ npm i @vanyamate/sec-solidjs
|
|
|
23
25
|
|
|
24
26
|
```tsx
|
|
25
27
|
|
|
26
|
-
import { effect, store, marker, pending, to } from '@vanyamate/sec';
|
|
28
|
+
import { effect, store, marker, pending, to, result } from '@vanyamate/sec';
|
|
27
29
|
import { useStore } from '@vanyamate/sec-react';
|
|
28
|
-
import { result } from './index';
|
|
29
30
|
|
|
30
31
|
|
|
31
32
|
const logout = async function () {
|
package/dist/index.d.ts
CHANGED
|
@@ -41,7 +41,7 @@ export declare type MarkerListener = () => void;
|
|
|
41
41
|
|
|
42
42
|
export declare const pending: (effects: Array<Effect<any>>) => Store<boolean>;
|
|
43
43
|
|
|
44
|
-
export declare const result: <State
|
|
44
|
+
export declare const result: <State extends Awaited<ReturnType<Action>>, Action extends EffectAction>() => StoreHandlerMap<State, Action>["onSuccess"];
|
|
45
45
|
|
|
46
46
|
export declare type Store<State> = {
|
|
47
47
|
on: StoreEffectSubscribe<State>;
|