import { PreQuest } from '@prequest/core' ; import { Request , Response , GetAdapter } from './types' ; import { baseOption } from '@prequest/helper' ; import { merge } from '@prequest/utils' ; import { adapter } from './adapter' ; type Req < T > = Request & Partial < T > ; type Res < N > = Response & N ; export function create < T , N > ( options ? , wrapper = ( v ) => v ) { return PreQuest . create < Req < T > , Response & N > ( wrapper ( adapter ) , merge ( baseOption , options ) ) ; }