UNPKG

@oarepo/invenio-vue

Version:

Vue 3 library for handling invenio REST

14 lines (13 loc) 569 B
import type { Http, HttpError, HttpOptions } from './types'; import { HttpQuery } from "./types"; /** * A simple http wrapper around fetcher that uses axios. * @see useFetcher * * @param initialUrl the base url * @param initialQuery the initial query * @param options * @returns {Http<DataType, ErrorType>} */ export declare function useHttp<DataType, ErrorType extends HttpError>(initialUrl?: string, initialQuery?: HttpQuery, options?: HttpOptions<DataType, ErrorType>): Http<DataType, ErrorType>; export declare type UseHttp = typeof useHttp;