reactjrx 1.91.0 → 1.92.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.
@@ -1,5 +1,5 @@
1
1
  import { IDENTIFIER_PERSISTANCE_KEY } from './constants';
2
- import { Signal } from '../signal';
2
+ import { SignalValue, Signal } from '../signal';
3
3
 
4
4
  export interface Adapter {
5
5
  getItem: (key: string) => Promise<unknown>;
@@ -12,14 +12,14 @@ export interface PersistanceEntry {
12
12
  migrationVersion?: number;
13
13
  [IDENTIFIER_PERSISTANCE_KEY]: typeof IDENTIFIER_PERSISTANCE_KEY;
14
14
  }
15
- export interface SignalPersistenceConfig<Value> {
15
+ export interface SignalPersistenceConfig<S extends Signal<any, any, string>> {
16
16
  version: number;
17
- signal: Signal<any, Value, string>;
17
+ signal: S;
18
18
  /**
19
19
  * Only called if there is a value to hydrate
20
20
  */
21
21
  hydrate?: (params: {
22
22
  version: number;
23
- value: Value;
24
- }) => Value;
23
+ value: SignalValue<S>;
24
+ }) => SignalValue<S>;
25
25
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "reactjrx",
3
3
  "private": false,
4
- "version": "1.91.0",
4
+ "version": "1.92.1",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"