@sasjs/adapter 4.9.0 → 4.9.1

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/node/SASjs.d.ts CHANGED
@@ -3,7 +3,7 @@ import { SASjsConfig, UploadFile, EditContextInput, PollOptions, VerboseMode, Lo
3
3
  import { SASViyaApiClient } from './SASViyaApiClient';
4
4
  import { SASjsAuthResponse } from './SASjsApiClient';
5
5
  import { MacroVar, AuthConfig, ExtraResponseAttributes, SasAuthResponse, AuthConfigSas9 } from '@sasjs/utils/types';
6
- import { AxiosResponse } from 'axios';
6
+ import { AxiosResponse, AxiosError } from 'axios';
7
7
  interface ExecuteScriptParams {
8
8
  linesOfCode: string[];
9
9
  fileName?: string;
@@ -343,7 +343,7 @@ export default class SASjs {
343
343
  * @param successCallBack - function that should be triggered on every HTTP response with the status 2**.
344
344
  * @param errorCallBack - function that should be triggered on every HTTP response with the status different from 2**.
345
345
  */
346
- enableVerboseMode(successCallBack?: (response: AxiosResponse) => AxiosResponse, errorCallBack?: (response: AxiosResponse) => AxiosResponse): void;
346
+ enableVerboseMode(successCallBack?: (response: AxiosResponse | AxiosError) => AxiosResponse, errorCallBack?: (response: AxiosResponse | AxiosError) => AxiosResponse): void;
347
347
  /**
348
348
  * Turns off verbose mode to log every HTTP response.
349
349
  */