|
6 | 6 | import { AxiosInstance } from "axios";
|
7 | 7 | import { AxiosRequestConfig } from "axios";
|
8 | 8 | import { AxiosResponse } from "axios";
|
| 9 | +import { ComputedRef } from "@vue/runtime-core"; |
9 | 10 | import { PromiseResultFactory } from "vue-composable";
|
10 |
| -import { Ref } from "@vue/composition-api"; |
| 11 | +import { Ref } from "@vue/runtime-core"; |
11 | 12 |
|
12 | 13 | // @public (undocumented)
|
13 | 14 | export function makeAxios(
|
14 | 15 | client: AxiosInstance,
|
15 | 16 | throwException?: boolean
|
16 | 17 | ): {
|
17 | 18 | client: AxiosInstance;
|
18 |
| - data: Readonly< |
19 |
| - import("@vue/composition-api/dist/reactivity/ref").Ref<Readonly<any>> |
20 |
| - >; |
21 |
| - status: Readonly< |
22 |
| - import("@vue/composition-api/dist/reactivity/ref").Ref<number> |
23 |
| - >; |
24 |
| - statusText: Readonly< |
25 |
| - import("@vue/composition-api/dist/reactivity/ref").Ref<string> |
26 |
| - >; |
| 19 | + data: import("@vue/reactivity").ComputedRef<any>; |
| 20 | + status: import("@vue/reactivity").ComputedRef<number>; |
| 21 | + statusText: import("@vue/reactivity").ComputedRef<string>; |
27 | 22 | cancel: (message?: string | undefined) => void;
|
28 |
| - isCancelled: import("@vue/composition-api/dist/reactivity/ref").Ref<boolean>; |
29 |
| - cancelledMessage: import("@vue/composition-api/dist/reactivity/ref").Ref< |
30 |
| - string | null | undefined |
31 |
| - >; |
| 23 | + isCancelled: |
| 24 | + | import("@vue/reactivity").Ref<false> |
| 25 | + | import("@vue/reactivity").Ref<true>; |
| 26 | + cancelledMessage: |
| 27 | + | import("@vue/reactivity").Ref<undefined> |
| 28 | + | import("@vue/reactivity").Ref<null> |
| 29 | + | import("@vue/reactivity").Ref<string>; |
32 | 30 | exec: (
|
33 | 31 | request: string | AxiosRequestConfig
|
34 | 32 | ) => Promise<AxiosResponse<any> | undefined>;
|
|
0 commit comments