docs: remove usages of ts-ignore in examples (#12839)
This commit is contained in:
@@ -518,8 +518,8 @@ Create the file `src/workflows/add-custom-to-cart.ts` with the following content
|
||||

|
||||
|
||||
export const workflowHighlights = [
|
||||
["18", "useQueryGraphStep", "Retrieve the cart's details."],
|
||||
["24", "useQueryGraphStep", "Retrieve the variant's details."],
|
||||
["17", "useQueryGraphStep", "Retrieve the cart's details."],
|
||||
["23", "useQueryGraphStep", "Retrieve the variant's details."],
|
||||
]
|
||||
|
||||
```ts title="src/workflows/add-custom-to-cart.ts" highlights={workflowHighlights}
|
||||
@@ -539,7 +539,6 @@ type AddCustomToCartWorkflowInput = {
|
||||
export const addCustomToCartWorkflow = createWorkflow(
|
||||
"add-custom-to-cart",
|
||||
({ cart_id, item }: AddCustomToCartWorkflowInput) => {
|
||||
// @ts-ignore
|
||||
const { data: carts } = useQueryGraphStep({
|
||||
entity: "cart",
|
||||
filters: { id: cart_id },
|
||||
@@ -651,7 +650,6 @@ import { WorkflowResponse } from "@medusajs/framework/workflows-sdk"
|
||||
And replace the last `TODO` in the workflow with the following:
|
||||
|
||||
```ts title="src/workflows/add-custom-to-cart.ts"
|
||||
// @ts-ignore
|
||||
const { data: updatedCarts } = useQueryGraphStep({
|
||||
entity: "cart",
|
||||
filters: { id: cart_id },
|
||||
|
||||
Reference in New Issue
Block a user