diff --git a/docs/context.mdx b/docs/context.mdx index 618e80a74..b325f950b 100644 --- a/docs/context.mdx +++ b/docs/context.mdx @@ -9,9 +9,9 @@ Context (`ctx`) is a way to get information about a run. The context object does not change whilst your code is executing. This means values like `ctx.run.durationMs` will be fixed at the moment the `run()` function is called. -Here's an example: + -```typescript +```typescript Context example import { task } from "@trigger.dev/sdk/v3"; export const parentTask = task({ @@ -25,6 +25,8 @@ export const parentTask = task({ }); ``` + + ## Context properties