11 lines
227 B
TypeScript
11 lines
227 B
TypeScript
import { ofetch } from 'ofetch';
|
|
import type { FetchOptions } from 'ofetch';
|
|
|
|
export function createRequest(options: FetchOptions) {
|
|
const request = ofetch.create(options);
|
|
|
|
return request;
|
|
}
|
|
|
|
export default createRequest;
|