resourcerer 1.1.2 → 1.1.3

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.
Files changed (2) hide show
  1. package/index.d.ts +2 -1
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -182,7 +182,7 @@ declare module 'resourcerer' {
182
182
  options?: {[key: string]: any};
183
183
  params?: {[key: string]: any};
184
184
  prefetches?: {[key: string]: any}[];
185
- provides?: (model: Model | Collection) => {[key: string]: any};
185
+ provides?: {[key: string]: (model: Model | Collection) => any};
186
186
  };
187
187
 
188
188
  type ResourceValues = Extract<typeof ResourceKeys[keyof typeof ResourceKeys], string>;
@@ -242,4 +242,5 @@ declare module 'resourcerer' {
242
242
  let ResourceKeys: ResourceKeys & {add(keys: Partial<ResourceKeys>): void;};
243
243
  let ResourcesConfig: ResourcerConfigOptions & {set: (options: ResourcerConfigOptions) => void;};
244
244
  let ModelMap: ModelMap & {add(keys: ModelMap): void;};
245
+ let ModelCache: ModelCache;
245
246
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "resourcerer",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "repository": "github.com/noahgrant/resourcerer",
5
5
  "description": "Declarative data-fetching and caching framework for React",
6
6
  "keywords": [