My TypeScript code looks like this:
import type { CoreItem } from 'ebay-api';
declare interface Props {
item: CoreItem;
}
export default function Item({ item }: Props) {
// <snip>
}
However, I encounter an issue when trying to build my next.js app. The error message reads as follows:
./src/app/item.tsx:3:15
Type error: Module '"ebay-api"' has no exported member 'CoreItem'. Did you mean to use 'import CoreItem from "ebay-api"' instead?
I am unsure how to properly import the CoreItem
type. Can anyone provide guidance on this?