docs: remove usages of ts-ignore in examples (#12839)

This commit is contained in:
Shahed Nasser
2025-06-26 17:51:49 +03:00
committed by GitHub
parent 7d95eb73d3
commit f7e4a80c30
25 changed files with 17689 additions and 169 deletions
@@ -157,10 +157,10 @@ Learn more about compensation functions in [this chapter](../../../fundamentals/
You can now create the workflow that uses the above step. Add the workflow to the same `src/workflows/sync-brands-to-cms.ts` file:
export const syncWorkflowHighlights = [
["19", "useQueryGraphStep", "Retrieve the brand's details."],
["23", "id", "Filter by the brand's ID."],
["26", "throwIfKeyNotFound", "Throw an error if a brand with the specified ID doesn't exist."],
["30", "syncBrandToCmsStep", "Create the brand in the third-party CMS."]
["18", "useQueryGraphStep", "Retrieve the brand's details."],
["22", "id", "Filter by the brand's ID."],
["25", "throwIfKeyNotFound", "Throw an error if a brand with the specified ID doesn't exist."],
["29", "syncBrandToCmsStep", "Create the brand in the third-party CMS."]
]
```ts title="src/workflows/sync-brands-to-cms.ts" highlights={syncWorkflowHighlights}
@@ -181,7 +181,6 @@ type SyncBrandToCmsWorkflowInput = {
export const syncBrandToCmsWorkflow = createWorkflow(
"sync-brand-to-cms",
(input: SyncBrandToCmsWorkflowInput) => {
// @ts-ignore
const { data: brands } = useQueryGraphStep({
entity: "brand",
fields: ["*"],