@carbonorm/carbonnode 3.4.8 → 3.4.11

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.
@@ -136,18 +136,16 @@ export type DetermineResponseDataType<
136
136
  Method extends iRestMethods,
137
137
  RestTableInterface extends { [key: string]: any },
138
138
  ResponseDataOverrides = {}
139
- > =
140
- null
141
- | undefined
142
- | (Method extends 'POST'
143
- ? iPostC6RestResponse<RestTableInterface>
144
- : Method extends 'GET'
145
- ? iGetC6RestResponse<RestTableInterface, ResponseDataOverrides>
146
- : Method extends 'PUT'
147
- ? iPutC6RestResponse<RestTableInterface>
148
- : Method extends 'DELETE'
149
- ? iDeleteC6RestResponse<RestTableInterface>
150
- : never);
139
+ > = null |
140
+ (Method extends 'POST'
141
+ ? iPostC6RestResponse<RestTableInterface>
142
+ : Method extends 'GET'
143
+ ? iGetC6RestResponse<RestTableInterface, ResponseDataOverrides>
144
+ : Method extends 'PUT'
145
+ ? iPutC6RestResponse<RestTableInterface>
146
+ : Method extends 'DELETE'
147
+ ? iDeleteC6RestResponse<RestTableInterface>
148
+ : never);
151
149
 
152
150
  export interface iRest<
153
151
  RestShortTableName extends string = any,
@@ -258,6 +256,7 @@ export interface iC6Object<
258
256
  };
259
257
  PREFIX: string;
260
258
  IMPORT: (tableName: string) => Promise<iDynamicApiImport>;
259
+
261
260
  [key: string]: any;
262
261
  }
263
262
 
@@ -25,7 +25,7 @@ export function clearCache(props?: iClearCache) {
25
25
 
26
26
  }
27
27
 
28
- export function checkCache<ResponseDataType = any, RestShortTableNames = string>(cacheResult: iCacheAPI<ResponseDataType>, requestMethod: string, tableName: RestShortTableNames | RestShortTableNames[], request: any): false | undefined | null | AxiosPromise<ResponseDataType> {
28
+ export function checkCache<ResponseDataType = any, RestShortTableNames = string>(cacheResult: iCacheAPI<ResponseDataType>, requestMethod: string, tableName: RestShortTableNames | RestShortTableNames[], request: any): false | AxiosPromise<ResponseDataType> {
29
29
 
30
30
  if (undefined === cacheResult) {
31
31