idosell 0.4.4 → 0.4.9

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/app.d.ts CHANGED
@@ -20,7 +20,7 @@ export type RequestProxyObject = {
20
20
 
21
21
  export type RequirementType = {
22
22
  any: string[]|true
23
- } | string | ((RequestProxyObject) => string|false);
23
+ } | string | ((arg: RequestProxyObject | Record<string,any>) => string|false);
24
24
 
25
25
  export type GatewayRequestProxyObject = {
26
26
  gate: {
@@ -57,6 +57,11 @@ export interface Gateway<R = JSObject, P = JSObject> {
57
57
  * @description Set object as params
58
58
  */
59
59
  setParams: (params: P) => this
60
+
61
+ /**
62
+ * @description Checks if minimal parameters are provided. If not, throws an error.
63
+ */
64
+ checkParams: () => void
60
65
  }
61
66
 
62
67
  export interface PagableGateway<T,R = JSObject, P = JSObject> extends Gateway<R, P> {