magento2 icon indicating copy to clipboard operation
magento2 copied to clipboard

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

Open slongiaru-dmind opened this issue 11 months ago • 0 comments

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

slongiaru-dmind avatar Mar 25 '24 09:03 slongiaru-dmind