billy-herrington-utils 2.0.5 → 2.0.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.
package/dist/index.d.ts CHANGED
@@ -235,7 +235,7 @@ export declare class RulesGlobal {
235
235
  private resetInfiniteScroller;
236
236
  initialGrope: 'all-in-one' | 'all-in-all' | undefined;
237
237
  gropeInit(): void;
238
- constructor();
238
+ constructor(options: Partial<RulesGlobal>);
239
239
  }
240
240
 
241
241
  export declare function sanitizeStr(s: string): string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "billy-herrington-utils",
3
3
  "description": "daddy told us not to be ashamed of our utils",
4
- "version": "2.0.5",
4
+ "version": "2.0.6",
5
5
  "license": "MIT",
6
6
  "keywords": [
7
7
  "utils",
@@ -222,7 +222,9 @@ export class RulesGlobal {
222
222
  }
223
223
  }
224
224
 
225
- constructor() {
225
+ constructor(options: Partial<RulesGlobal>) {
226
+ Object.assign(this, options);
227
+
226
228
  this.paginationStrategy = getPaginationStrategy(this.paginationStrategyOptions);
227
229
 
228
230
  this.store = new JabronioStore(this.storeOptions);