@luizleon/sf.prefeiturasp.vuecomponents 4.1.8 → 4.1.10

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.
@@ -1,7 +1,7 @@
1
1
  import { AxiosInstance, AxiosResponse } from 'axios';
2
2
  import { AppResult } from '../common/appResult';
3
3
  declare class ApiClient {
4
- constructor();
4
+ constructor(baseUrl?: string);
5
5
  private axios;
6
6
  private authService;
7
7
  /**
@@ -28,5 +28,12 @@ declare class ApiClient {
28
28
  HandleCatch<T>(e: any): AppResult<T>;
29
29
  private ParsedResponse;
30
30
  }
31
- declare const UseApiClient: () => ApiClient;
31
+ /**
32
+ * Retorna uma instância de ApiClient.
33
+ * Por padrão, a URL base é a URL onde a aplicação está hospedada + '/api'.
34
+ * Para alterar a URL base, passe a URL como parâmetro.
35
+ * @param baseURL
36
+ * @returns
37
+ */
38
+ declare const UseApiClient: (baseURL?: string) => ApiClient;
32
39
  export { ApiClient, UseApiClient };