asset-s/QuoteRequestor: clarify axios error type
Addresses review comment https://github.com/0xProject/0x-monorepo/pull/2581#discussion_r423337773
This commit is contained in:
		@@ -80,7 +80,7 @@ function hasExpectedAssetData(
 | 
			
		||||
    return hasExpectedMakerAssetData && hasExpectedTakerAssetData;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function convertIfAxiosError(error: any): Error {
 | 
			
		||||
function convertIfAxiosError(error: any): Error | object /* axios' .d.ts has AxiosError.toJSON() returning object */ {
 | 
			
		||||
    if (error.hasOwnProperty('isAxiosError') && error.isAxiosError && error.hasOwnProperty('toJSON')) {
 | 
			
		||||
        return error.toJSON();
 | 
			
		||||
    } else {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user