mirror of
https://github.com/jcreek/SvelteKitSaasBoilerplate.git
synced 2026-07-13 02:53:50 +00:00
refactor(*): Strongly type the return object
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user