@hungr/types
    Preparing search index...

    Type Alias CreateMenuItem

    CreateMenuItem: {
        name: string;
        description: string;
        assets: { imageUrls: string[]; thumbUrl: string };
        price: number;
    }

    A new menu item. The server sets its ID.

    Type Declaration

    • name: string

      The item's name.

    • description: string

      A short description of the item.

    • assets: { imageUrls: string[]; thumbUrl: string }

      URLs of the item's images.

      • imageUrls: string[]

        URLs of the item's images.

      • thumbUrl: string

        URL of the item's thumbnail.

    • price: number

      Price in NZD cents.