import SoFetchResponse from './response' ; const parseResponse = < T > ( response ) : Promise < SoFetchResponse < T > > => { return ( response . json ( ) . then ( ( data ) => data , ( ) => undefined ) . then ( jsonData => { return new SoFetchResponse < T > ( response , jsonData ) ; } ) ) ; } ; export default parseResponse ;