Type guard to check if GetProducts response is working. Automatically narrows response type to GetProductsAsyncWorking.
if (isGetProductsWorking(metadata, response)) { console.log(`Progress: ${response.percentage}%`);} Copy
if (isGetProductsWorking(metadata, response)) { console.log(`Progress: ${response.percentage}%`);}
Type guard to check if GetProducts response is working. Automatically narrows response type to GetProductsAsyncWorking.