17 lines
356 B
TypeScript
17 lines
356 B
TypeScript
// /types/uiPart.ts
|
||
export type UiPart = {
|
||
id: string;
|
||
name: string;
|
||
brand: string;
|
||
caliber?: string | null;
|
||
platform: string;
|
||
partRole: string;
|
||
|
||
// allow nulls from API (don’t coerce to 0)
|
||
price?: number | null;
|
||
imageUrl?: string;
|
||
buyUrl?: string;
|
||
buyShortUrl?: string;
|
||
|
||
inStock?: boolean | null;
|
||
}; |