@solidjs/signals 0.2.3 → 0.2.4

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.
@@ -17,5 +17,6 @@ export declare function mapArray<Item, MappedItem>(list: Accessor<Maybe<readonly
17
17
  * @description https://docs.solidjs.com/reference/reactive-utilities/repeat
18
18
  */
19
19
  export declare function repeat(count: Accessor<number>, map: (index: number) => any, options?: {
20
+ from?: Accessor<number | undefined>;
20
21
  fallback?: Accessor<any>;
21
22
  }): Accessor<any[]>;
@@ -1,6 +1,8 @@
1
+ import { type Store, type StoreSetter } from "./store.js";
1
2
  /**
2
3
  * Creates a mutable derived value
3
4
  *
4
5
  * @see {@link https://github.com/solidjs/x-reactivity#createprojection}
5
6
  */
6
- export declare function createProjection<T extends Object>(fn: (draft: T) => void, initialValue?: T): any;
7
+ export declare function createProjection<T extends Object>(fn: (draft: T) => void, initialValue?: T): Store<T>;
8
+ export declare function wrapProjection<T>(fn: (draft: T) => void, store: Store<T>, setStore: StoreSetter<T>): [Store<T>, StoreSetter<T>];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solidjs/signals",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "",
5
5
  "author": "Ryan Carniato",
6
6
  "license": "MIT",