mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-06-01 07:29:01 +00:00
Fix 20+ pre-existing TypeScript errors in the server package using proper type-safe solutions — no `as any`, `as unknown`, or `any` types. Key changes: - Replace R.curry with regular curried arrow functions for proper inference - Add return types to abstract methods (DynamicFilterRoleAbstractor) - Add field declarations to empty models (ItemWarehouseQuantity) - Add index signature to IMetadata for dynamic extra columns - Use explicit field construction instead of pick()+cast patterns - Convert moment format strings to Date objects where Date type expected - Make interface properties optional where payloads don't include them - Use native Array.reduce with proper typing instead of lodash chain Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>