@@ -64,12 +64,12 @@ const getFakeGot = (defaultOptions?: any) => {
6464 return response ;
6565 } ;
6666
67- fakeGot . get = ( request , options ) => fakeGot ( request , { ...options , method : 'GET' } ) ;
68- fakeGot . post = ( request , options ) => fakeGot ( request , { ...options , method : 'POST' } ) ;
69- fakeGot . put = ( request , options ) => fakeGot ( request , { ...options , method : 'PUT' } ) ;
70- fakeGot . patch = ( request , options ) => fakeGot ( request , { ...options , method : 'PATCH' } ) ;
71- fakeGot . head = ( request , options ) => fakeGot ( request , { ...options , method : 'HEAD' } ) ;
72- fakeGot . delete = ( request , options ) => fakeGot ( request , { ...options , method : 'DELETE' } ) ;
67+ fakeGot . get = ( request , options ? ) => fakeGot ( request , { ...options , method : 'GET' } ) ;
68+ fakeGot . post = ( request , options ? ) => fakeGot ( request , { ...options , method : 'POST' } ) ;
69+ fakeGot . put = ( request , options ? ) => fakeGot ( request , { ...options , method : 'PUT' } ) ;
70+ fakeGot . patch = ( request , options ? ) => fakeGot ( request , { ...options , method : 'PATCH' } ) ;
71+ fakeGot . head = ( request , options ? ) => fakeGot ( request , { ...options , method : 'HEAD' } ) ;
72+ fakeGot . delete = ( request , options ? ) => fakeGot ( request , { ...options , method : 'DELETE' } ) ;
7373 fakeGot . extend = ( options ) => getFakeGot ( options ) ;
7474
7575 return fakeGot ;
0 commit comments