UNPKG

nuxt3-api-gen

Version:

This tool generates TypeScript types and API methods based on a Swagger/OpenAPI schema.

7 lines (6 loc) 275 B
import { apiMethods } from "~/api/apiMethods"; import type { UseFetchOptions } from "nuxt/app"; type TUseFetchOptions = UseFetchOptions<any, any, any, any>; //fix me export default function useApiService(options: TUseFetchOptions = {}) { return apiMethods(options) }