Given the following Javascript, how can I do the same in Typescript without getting an error?
if (typeof customizeHttpRequest === 'function') { customizeHttpRequest(xhr); }
I feel like this should be possible, or at least be able to suppress the error for this line.