@esportsplus/reactivity 0.1.11 → 0.1.12
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/build/signal.d.ts +1 -1
- package/build/signal.js +1 -1
- package/build/types.d.ts +2 -2
- package/build/types.js +1 -2
- package/package.json +1 -1
- package/src/signal.ts +1 -1
- package/src/types.ts +2 -2
package/build/signal.d.ts
CHANGED
|
@@ -48,4 +48,4 @@ declare const effect: (fn: Effect['fn']) => Effect;
|
|
|
48
48
|
declare const root: <T>(fn: (root: Root) => T, scheduler?: Root['scheduler']) => T;
|
|
49
49
|
declare const signal: <T>(value: T, options?: Options) => Signal<T>;
|
|
50
50
|
export { computed, dispose, effect, root, signal };
|
|
51
|
-
export { Computed, Effect, Signal };
|
|
51
|
+
export { Computed, Effect, Root, Signal };
|
package/build/signal.js
CHANGED
package/build/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Function, NeverAsync, Prettify } from '@esportsplus/typescript';
|
|
2
2
|
import { CHECK, CLEAN, COMPUTED, DIRTY, DISPOSED, EFFECT, ROOT, SIGNAL } from './constants';
|
|
3
|
-
import { Computed, Effect, Signal } from './signal';
|
|
3
|
+
import { Computed, Effect, Root, Signal } from './signal';
|
|
4
4
|
type Changed = (a: unknown, b: unknown) => boolean;
|
|
5
5
|
type Event = string;
|
|
6
6
|
type Listener<D> = {
|
|
@@ -16,4 +16,4 @@ type Options = {
|
|
|
16
16
|
};
|
|
17
17
|
type State = typeof CHECK | typeof CLEAN | typeof DIRTY | typeof DISPOSED;
|
|
18
18
|
type Type = typeof COMPUTED | typeof EFFECT | typeof ROOT | typeof SIGNAL;
|
|
19
|
-
export { Changed, Computed, Effect, Event, Function, Listener, Object, Options, NeverAsync, Prettify, Signal, State, Type };
|
|
19
|
+
export type { Changed, Computed, Effect, Event, Function, Listener, Object, Options, NeverAsync, Prettify, Root, Signal, State, Type };
|
package/build/types.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { Computed, Effect, Signal };
|
|
1
|
+
export {};
|
package/package.json
CHANGED
package/src/signal.ts
CHANGED
package/src/types.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Function, NeverAsync, Prettify } from '@esportsplus/typescript'
|
|
2
2
|
import { CHECK, CLEAN, COMPUTED, DIRTY, DISPOSED, EFFECT, ROOT, SIGNAL } from './constants';
|
|
3
|
-
import { Computed, Effect, Signal } from './signal';
|
|
3
|
+
import { Computed, Effect, Root, Signal } from './signal';
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
type Changed = (a: unknown, b: unknown) => boolean;
|
|
@@ -24,4 +24,4 @@ type State = typeof CHECK | typeof CLEAN | typeof DIRTY | typeof DISPOSED;
|
|
|
24
24
|
type Type = typeof COMPUTED | typeof EFFECT | typeof ROOT | typeof SIGNAL;
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
export { Changed, Computed, Effect, Event, Function, Listener, Object, Options, NeverAsync, Prettify, Signal, State, Type };
|
|
27
|
+
export type { Changed, Computed, Effect, Event, Function, Listener, Object, Options, NeverAsync, Prettify, Root, Signal, State, Type };
|