One of my projects utilizes a typescript package stored in npm with all the necessary definitions:
index.d.ts
export declare namespace OfferCraft {
enum Country {
es,
it,
fr,
uk,
de
}
enum Brand {
amazon,
eci,
ldld,
nvidia
}
interface Log {
msg: string
telegram?: boolean
title?: string
color?: string
}
interface Product {
sku: string;
brand: Brand;
country: Country;
url: string;
name: string;
image: string;
prime: boolean;
price?: number;
reacoprice?: number;
stock?: number;
}
}
When integrating this package into my other projects, Visual Studio Code successfully identifies the types without any lint errors:
https://i.stack.imgur.com/2d06u.png
However, during the project build process, I encounter an error:
https://i.stack.imgur.com/ggL4Y.png
I have tried various solutions to resolve this issue, but none have been successful. Feeling quite frustrated at this point.