@esportsplus/reactivity 0.13.0 → 0.13.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.
@@ -5,3 +5,4 @@ type API<T> = Infer<T[]> & {
5
5
  };
6
6
  declare const _default: <T>(data: T[]) => API<T>;
7
7
  export default _default;
8
+ export type { API as ReactiveArray };
@@ -8,4 +8,3 @@ type Input<T> = T extends {
8
8
  } : T extends Record<PropertyKey, unknown> | unknown[] ? T : never;
9
9
  declare const _default: <T>(input: Input<T>) => API<T>;
10
10
  export default _default;
11
- export type { Input };
package/build/types.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { COMPUTED, SIGNAL, STATE_CHECK, STATE_DIRTY, STATE_IN_HEAP, STATE_NONE, STATE_RECOMPUTING } from './constants.js';
2
+ import { ReactiveArray } from './reactive/array.js';
2
3
  import { ReactiveObject } from './reactive/object.js';
3
4
  interface Computed<T> {
4
5
  [COMPUTED]: true;
@@ -31,4 +32,4 @@ type Signal<T> = {
31
32
  subsTail: Link | null;
32
33
  value: T;
33
34
  };
34
- export type { Computed, Infer, Link, Signal, ReactiveObject };
35
+ export type { Computed, Infer, Link, Signal, ReactiveArray, ReactiveObject };
package/package.json CHANGED
@@ -12,7 +12,7 @@
12
12
  "private": false,
13
13
  "type": "module",
14
14
  "types": "build/index.d.ts",
15
- "version": "0.13.0",
15
+ "version": "0.13.1",
16
16
  "scripts": {
17
17
  "build": "tsc && tsc-alias",
18
18
  "-": "-"
@@ -327,3 +327,4 @@ export default <T>(data: T[]) => {
327
327
 
328
328
  return proxy;
329
329
  };
330
+ export type { API as ReactiveArray };
@@ -40,5 +40,4 @@ export default <T>(input: Input<T>): API<T> => {
40
40
 
41
41
  throw new Error(`@esportsplus/reactivity: 'reactive' received invalid input - ${JSON.stringify(input)}`);
42
42
  });
43
- };
44
- export type { Input };
43
+ };
package/src/types.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { COMPUTED, SIGNAL, STATE_CHECK, STATE_DIRTY, STATE_IN_HEAP, STATE_NONE, STATE_RECOMPUTING } from './constants';
2
+ import { ReactiveArray } from './reactive/array';
2
3
  import { ReactiveObject } from './reactive/object';
3
4
 
4
5
 
@@ -57,5 +58,5 @@ export type {
57
58
  Infer,
58
59
  Link,
59
60
  Signal,
60
- ReactiveObject
61
+ ReactiveArray, ReactiveObject
61
62
  };