frontend / api/inventory/utils
api/inventory/utils
File
utils.ts
Enterprise
- Enables single-responsibility utility modules organized by concern
- Preserves existing import paths:
import { pickString, errorMessage } from '@/api/inventory/utils' - Zero breaking changes for consuming modules across inventory API layer
- Clear organization: typeGuards, fieldPickers, errorHandling, responseExtraction
References
errorMessage
Re-exports errorMessage
extractArray
Re-exports extractArray
isRecord
Re-exports isRecord
pickNumber
Re-exports pickNumber
pickNumberFromList
Re-exports pickNumberFromList
pickString
Re-exports pickString
pickStringFromList
Re-exports pickStringFromList
resDataOrEmpty
Re-exports resDataOrEmpty