resourcerer 1.1.5 → 1.1.6

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 +4 -2
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -57,9 +57,9 @@ declare module 'resourcerer' {
57
57
 
58
58
  toJSON(): T;
59
59
 
60
- url(): string;
60
+ url(urlOptions?: Record<string, any>): string;
61
61
 
62
- urlRoot(): string;
62
+ urlRoot(urlOptions?: Record<string, any>): string;
63
63
 
64
64
  static cacheFields: Array<string | ((attrs: T) => Record<string, any>)>;
65
65
 
@@ -165,6 +165,8 @@ declare module 'resourcerer' {
165
165
  setResourceState(newState: {[key: string]: any}): void;
166
166
  isOrWillBeLoading(): boolean;
167
167
  [key: `${string}LoadingState`]: LoadingTypes;
168
+ [key: `${string}Collection`]: Collection;
169
+ [key: `${string}Model`]: Model;
168
170
  }
169
171
 
170
172
  declare function haveAllLoaded(loadingStates: LoadingTypes | LoadingTypes[]): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "resourcerer",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "repository": "github.com/noahgrant/resourcerer",
5
5
  "description": "Declarative data-fetching and caching framework for React",
6
6
  "keywords": ["declarative data-fetching framework", "react"],