docs: fix information related to link directions (#8236)

* docs: fix keys passed to remoteLink.create and remoteLink.dismiss

* updated hello module name + clarified note

* added details about module link directions

* fix lint errors
This commit is contained in:
Shahed Nasser
2024-07-24 09:16:01 +02:00
committed by GitHub
parent a02f6cbca6
commit 774d04da48
4 changed files with 85 additions and 8 deletions
@@ -51,8 +51,8 @@ import ProductModule from "@medusajs/product"
import { defineLink } from "@medusajs/utils"
export default defineLink(
HelloModule.linkable.myCustom,
ProductModule.linkable.product
ProductModule.linkable.product,
HelloModule.linkable.myCustom
)
```
@@ -86,11 +86,11 @@ import ProductModule from "@medusajs/product"
import { defineLink } from "@medusajs/utils"
export default defineLink(
ProductModule.linkable.product,
{
linkable: HelloModule.linkable.myCustom,
isList: true,
},
ProductModule.linkable.product
}
)
```
@@ -132,11 +132,11 @@ import ProductModule from "@medusajs/product"
import { defineLink } from "@medusajs/utils"
export default defineLink(
ProductModule.linkable.product,
{
linkable: HelloModule.linkable.myCustom,
deleteCascades: true,
},
ProductModule.linkable.product
}
)
```