@manyducks.co/dolla 0.67.0 → 0.68.0

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/lib/store.d.ts CHANGED
@@ -55,7 +55,7 @@ interface StoreConfig<O> {
55
55
  store: Store<O, any>;
56
56
  appContext: AppContext;
57
57
  elementContext: ElementContext;
58
- options: O;
58
+ options?: O;
59
59
  }
60
60
  export declare function initStore<O>(config: StoreConfig<O>): {
61
61
  readonly name: string;
@@ -1,9 +1,12 @@
1
1
  import { Store } from "../store.js";
2
2
  import { ViewContext } from "../view.js";
3
- export interface StoreScopeProps<O, E> {
3
+ export interface StoreConfig<O, E> {
4
4
  store: Store<O, E>;
5
5
  options?: O;
6
6
  }
7
+ export interface StoreScopeProps<O, E> {
8
+ stores: (StoreConfig<O, E> | Store<O, E>)[];
9
+ }
7
10
  /**
8
11
  * Creates an instance of a store available only to children of this StoreScope.
9
12
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@manyducks.co/dolla",
3
- "version": "0.67.0",
3
+ "version": "0.68.0",
4
4
  "description": "Front-end components, routing and state management.",
5
5
  "main": "lib/index.js",
6
6
  "types": "./index.d.ts",