UNPKG

@ace-fetch/vue

Version:

vue adapter for @ace-fetch/core.

39 lines (38 loc) 895 B
import { Fetch } from '../types'; declare module 'vue/types/vue' { interface Vue { /** * @deprecated Use `$apiFetch` instead. */ $afetch: Fetch; /** * Currently installed fetch instance. */ $apiFetch: Fetch; } } declare module 'vue/types/options' { interface ComponentOptions<V> { /** * @deprecated Use `apiFetch` instead. */ afetch?: Fetch; /** * Fetch instance to install in your application. Should be passed to the * root Vue. */ apiFetch?: Fetch; } } declare module '@vue/runtime-core' { interface ComponentCustomProperties { /** * @deprecated Use `$apiFetch` instead. */ $afetch: Fetch; /** * Access to the application's Fetch */ $apiFetch: Fetch; } }