Closed amaster507 closed 1 month ago
Also the line:
async createBrand(brand: Record<string, string>)
later is the culprit for a type error because the value type of string
is too strict for brand
which has properties that are Date
values.
To fix this, change the line to allow either string | Date
values like:
async createBrand(brand: Record<string, string | Date>)
Thanks for reporting this! wIll look into it
What Medusa version and documentation are you using?
v2
Preliminary Checks
Issue Summary
URL: https://docs.medusajs.com/v2/customization/integrate-systems/service#1-create-service
moduleDef.options
is not strongly typed, so the line:produces ts error:
How can this issue be resolved?
as BrandClientOptions
Are you interested in working on this issue?