fix(medusa, types): Mark properties as nullable to reflect their correct types (#5281)

* fix(medusa, types): Mark properties as nullable to reflect their correct types

* Create chilly-pugs-doubt.md

* fix column type to prevent inference

---------

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
Co-authored-by: Philip Korsholm <88927411+pKorsholm@users.noreply.github.com>
This commit is contained in:
Adrien de Peretti
2023-10-15 18:10:36 +02:00
committed by GitHub
co-authored by Oli Juhl Philip Korsholm
parent 3376f4ccc1
commit 69cf7215f1
3 changed files with 42 additions and 36 deletions
+13 -13
View File
@@ -220,19 +220,19 @@ export type FilterableInventoryItemProps = {
}
export type CreateInventoryItemInput = {
sku?: string
origin_country?: string
mid_code?: string
material?: string
weight?: number
length?: number
height?: number
width?: number
title?: string
description?: string
thumbnail?: string
sku?: string | null
origin_country?: string | null
mid_code?: string | null
material?: string | null
weight?: number | null
length?: number | null
height?: number | null
width?: number | null
title?: string | null
description?: string | null
thumbnail?: string | null
metadata?: Record<string, unknown> | null
hs_code?: string
hs_code?: string | null
requires_shipping?: boolean
}
@@ -242,7 +242,7 @@ export type CreateReservationItemInput = {
location_id: string
quantity: number
description?: string
created_by?: string
created_by?: string
external_id?: string
metadata?: Record<string, unknown> | null
}