so couple things based on your code snippet: ```typescript if (format == 'json') { const ini

so couple things based on your code snippet:
if (format == 'json') {
        const init = {
            headers: { 'content-type': 'application/json' },
        }
    }

const defines init, but init is already defined so you will want to remove "const" there
Was this page helpful?