fix(6): fix TypeScript type consistency issues
- Make Item.id required (items from DB always have id) - Use shared Item type from db.ts in QuantityAdjustmentModal - Show full npm build output instead of silencing errors - Ensures all modals use consistent type definitions
This commit is contained in:
@@ -4,16 +4,7 @@ import { useState, useEffect } from 'react';
|
||||
import { X } from 'lucide-react';
|
||||
import QuantityDisplay from './QuantityDisplay';
|
||||
import axios from 'axios';
|
||||
|
||||
interface Item {
|
||||
id: number;
|
||||
name: string;
|
||||
quantity: number;
|
||||
part_number?: string;
|
||||
barcode?: string;
|
||||
category?: string;
|
||||
description?: string;
|
||||
}
|
||||
import { Item } from '@/lib/db';
|
||||
|
||||
interface QuantityAdjustmentModalProps {
|
||||
item: Item | null;
|
||||
|
||||
Reference in New Issue
Block a user