From 4ca5510da9b14aa547dd507a9df76d165735ca14 Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Thu, 17 Oct 2024 19:13:17 +0300 Subject: [PATCH] fix(types): change options to be required in http type (#9642) `options` is now required when creating a product. This PR updates the http type --- packages/core/types/src/http/product/admin/payloads.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/types/src/http/product/admin/payloads.ts b/packages/core/types/src/http/product/admin/payloads.ts index 678e1c2ed8..35739f8179 100644 --- a/packages/core/types/src/http/product/admin/payloads.ts +++ b/packages/core/types/src/http/product/admin/payloads.ts @@ -72,7 +72,7 @@ export interface AdminCreateProduct { collection_id?: string categories?: { id: string }[] tags?: { id: string }[] - options?: AdminCreateProductOption[] + options: AdminCreateProductOption[] variants?: AdminCreateProductVariant[] sales_channels?: { id: string }[] weight?: number