refactor(*): Strongly type the return object

This commit is contained in:
Josh Creek
2024-10-15 20:06:51 +01:00
parent 79e2dcb744
commit f46b6359ab
+1 -1
View File
@@ -438,7 +438,7 @@ const getActiveProductsWithPrices = async (limit = 10, offset = 0) => {
}
}
return { products, count }; // Return products and total count
return { products: products as ProductWithPrices[], count };
};
export {