docs: remove usages of ts-ignore in examples (#12839)
This commit is contained in:
@@ -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: ["*"],
|
||||
|
||||
Reference in New Issue
Block a user