docs: remove usages of ts-ignore in examples (#12839)
This commit is contained in:
1 parent
7d95eb73d3
commit
f7e4a80c30
25 files changed
+17689
-169
No files matched your search
@@ -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: ["*"],
|
||||
|
||||
@@ -903,7 +903,6 @@ type WorkflowInput = {
|
||||
export const sendOrderConfirmationWorkflow = createWorkflow(
|
||||
"send-order-confirmation",
|
||||
({ id }: WorkflowInput) => {
|
||||
// @ts-ignore
|
||||
const { data: orders } = useQueryGraphStep({
|
||||
entity: "order",
|
||||
fields: [
|
||||
|
||||
@@ -84,7 +84,7 @@ export const generatedEditDates = {
|
||||
"app/learn/customization/extend-features/define-link/page.mdx": "2025-04-17T08:50:17.036Z",
|
||||
"app/learn/customization/extend-features/page.mdx": "2024-12-09T11:02:39.244Z",
|
||||
"app/learn/customization/extend-features/query-linked-records/page.mdx": "2025-04-18T07:41:05.912Z",
|
||||
"app/learn/customization/integrate-systems/handle-event/page.mdx": "2024-12-24T15:09:24.653Z",
|
||||
"app/learn/customization/integrate-systems/handle-event/page.mdx": "2025-06-26T14:26:15.310Z",
|
||||
"app/learn/customization/integrate-systems/page.mdx": "2024-12-09T10:40:08.528Z",
|
||||
"app/learn/customization/integrate-systems/schedule-task/page.mdx": "2025-01-28T16:42:42.071Z",
|
||||
"app/learn/customization/integrate-systems/service/page.mdx": "2024-12-09T11:02:39.594Z",
|
||||
@@ -117,7 +117,7 @@ export const generatedEditDates = {
|
||||
"app/learn/production/worker-mode/page.mdx": "2025-03-11T15:21:50.906Z",
|
||||
"app/learn/fundamentals/module-links/read-only/page.mdx": "2025-05-13T15:04:12.107Z",
|
||||
"app/learn/fundamentals/data-models/properties/page.mdx": "2025-03-18T07:57:17.826Z",
|
||||
"app/learn/fundamentals/framework/page.mdx": "2025-04-25T14:26:25.000Z",
|
||||
"app/learn/fundamentals/framework/page.mdx": "2025-06-26T14:26:22.120Z",
|
||||
"app/learn/fundamentals/api-routes/retrieve-custom-links/page.mdx": "2025-04-25T14:26:25.000Z",
|
||||
"app/learn/fundamentals/workflows/errors/page.mdx": "2025-04-25T14:26:25.000Z",
|
||||
"app/learn/fundamentals/api-routes/override/page.mdx": "2025-05-09T08:01:24.493Z",
|
||||
|
||||
+17570
-35
File diff suppressed because it is too large.
Load diff
@@ -284,6 +284,9 @@ async function main() {
|
||||
},
|
||||
allowedFilesPatterns: [/^(?!.*\/(colors|icons|hooks)\/).*$/],
|
||||
},
|
||||
{
|
||||
dir: path.join(process.cwd(), "..", "resources", "app", "recipes"),
|
||||
},
|
||||
],
|
||||
})
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user