Move code example to the side menu
This commit is contained in:
+4
-2
@@ -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.
|
||||
</Note>
|
||||
|
||||
Here's an example:
|
||||
<RequestExample>
|
||||
|
||||
```typescript
|
||||
```typescript Context example
|
||||
import { task } from "@trigger.dev/sdk/v3";
|
||||
|
||||
export const parentTask = task({
|
||||
@@ -25,6 +25,8 @@ export const parentTask = task({
|
||||
});
|
||||
```
|
||||
|
||||
</RequestExample>
|
||||
|
||||
## Context properties
|
||||
|
||||
<ResponseField name="task" type="object">
|
||||
|
||||
Reference in New Issue
Block a user