Skip to content

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

@slongiaru-dmind

Description

@slongiaru-dmind

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions