import { AxleTypes } from '../index' ; import AxleRequest from '../models/request' ; import AxleResponse from '../models/response' ; export default async function patch < t = Record < string , any > > ( url , data ? , options = { mode : 'cors' , cache : 'default' , credentials : 'same-origin' , headers : { 'Content-Type' : 'application/json' , } , } ) { const req = new AxleRequest ( 'PATCH' , url , data , options ) ; const res = await req . run ( ) ; return res ; }