chore(types): fix example for createProductOptionValues in TSDocs and docs (#12623)
This commit is contained in:
@@ -1563,11 +1563,9 @@ export interface IProductModuleService extends IModuleService {
|
|||||||
* const options = await productModuleService.createProductOptionValues([
|
* const options = await productModuleService.createProductOptionValues([
|
||||||
* {
|
* {
|
||||||
* value: "Blue",
|
* value: "Blue",
|
||||||
* option_id: "opt_123",
|
|
||||||
* },
|
* },
|
||||||
* {
|
* {
|
||||||
* value: "Green",
|
* value: "Green",
|
||||||
* option_id: "opt_123",
|
|
||||||
* },
|
* },
|
||||||
* ])
|
* ])
|
||||||
*
|
*
|
||||||
@@ -1587,7 +1585,6 @@ export interface IProductModuleService extends IModuleService {
|
|||||||
* @example
|
* @example
|
||||||
* const option = await productModuleService.createProductOptionValues({
|
* const option = await productModuleService.createProductOptionValues({
|
||||||
* value: "Blue",
|
* value: "Blue",
|
||||||
* option_id: "opt_123",
|
|
||||||
* })
|
* })
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|||||||
-3
@@ -26,11 +26,9 @@ This method is used to create product option values.
|
|||||||
const options = await productModuleService.createProductOptionValues([
|
const options = await productModuleService.createProductOptionValues([
|
||||||
{
|
{
|
||||||
value: "Blue",
|
value: "Blue",
|
||||||
option_id: "opt_123",
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: "Green",
|
value: "Green",
|
||||||
option_id: "opt_123",
|
|
||||||
},
|
},
|
||||||
])
|
])
|
||||||
```
|
```
|
||||||
@@ -52,7 +50,6 @@ This method is used to create a product option.
|
|||||||
```ts
|
```ts
|
||||||
const option = await productModuleService.createProductOptionValues({
|
const option = await productModuleService.createProductOptionValues({
|
||||||
value: "Blue",
|
value: "Blue",
|
||||||
option_id: "opt_123",
|
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user