UNPKG

@datametria/vue-components

Version:

DATAMETRIA Vue.js 3 Component Library with Multi-Brand Theming - 51 components + 10 composables with theming support, WCAG 2.2 AA, dark mode, responsive system

15 lines (14 loc) 597 B
export interface ApiConfig { baseURL?: string; timeout?: number; headers?: Record<string, string>; } export declare function useAPI(config?: ApiConfig): { loading: import('vue').Ref<boolean, boolean>; error: import('vue').Ref<string | null, string | null>; data: import('vue').Ref<any, any>; get: (url: string, options?: RequestInit) => Promise<any>; post: (url: string, body: any, options?: RequestInit) => Promise<any>; put: (url: string, body: any, options?: RequestInit) => Promise<any>; delete: (url: string, options?: RequestInit) => Promise<any>; };