vuestorefront / magento2

Vue Storefront 2 integration for Magento 2
https://docs.vuestorefront.io/magento
MIT License
172 stars 117 forks source link

ERROR(vue-tsc) Property 'items' does not exist #1506

Open slongiaru-dmind opened 5 months ago

slongiaru-dmind commented 5 months ago

Possibly a typo causing TSC compilation errors. type A appears to be unused.

ERROR(vue-tsc)  Property 'items' does not exist on type '{ items?: ({ uid: string; sku?: string | null | undefined; name?: string | null | undefined; stock_status?: ProductStockStatus | null | undefined; only_x_left_in_stock?: number | ... 1 more ... | undefined; ... 18 more ...; short_description?: { ...; } | ... 1 more ... | undefined; } | ... 6 more ... | undefined)[] ...'.
FILE  @vue-storefront/magento-types/src/Schema.ts:8045:42

8043 | }>;
8044 |
> 8045 | type A = ProductDetailsQuery['products']['items']
       |                                          ^^^^^^^
8046 | export type ProductDetailsQuery = {
8047 |   products?: {
8048 |     items?: Array<{

https://github.com/vuestorefront/magento2/blob/f58b16c652f1ab7620d298fd08b27856b66f0ba8/packages/api-types/src/Schema.ts#L8045