frontend


frontend / api/analytics/metrics / getInventoryCount

Variable: getInventoryCount()

const getInventoryCount: () => Promise<number> = getItemCount

Defined in: src/api/analytics/metrics.ts:86

Alias for getItemCount() - kept for backward compatibility with Dashboard.tsx

Fetch total inventory item count from backend. Returns 0 on any error (tolerant).

Returns

Promise<number>

Total number of inventory items

Example

const count = await getItemCount();
console.log(count); // 150

Deprecated

Use getItemCount() instead