Skip to content

Commit 6a8bda9

Browse files
committed
finalize
1 parent 810416d commit 6a8bda9

File tree

1 file changed

+31
-1
lines changed

1 file changed

+31
-1
lines changed

articles/azure-functions/durable/durable-functions-node-model-upgrade.md

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -844,4 +844,34 @@ const response = yield context.df.callHttp(
844844
```
845845
846846
---
847-
:::zone-end
847+
:::zone-end
848+
849+
> [!TIP]
850+
> Update your API calls to `callHttp` inside your orchestrations to use the new options object.
851+
852+
:::zone pivot="programming-language-typescript"
853+
854+
## Leverage New Types
855+
856+
The `durable-functions` package now exposes new types that weren't previously exported! This allows you to more strongly type your functions and provide stronger type safety for your orchestrations, entities, and activities! This also improves intellisense for authoring these functions.
857+
858+
Below are some of the new exported types:
859+
860+
- `OrchestrationHandler`, and `OrchestrationContext` for orchestrations
861+
- `EntityHandler` and `EntityContext` for entities
862+
- `ActivityHandler` for activities
863+
- `DurableClient` class for client functions
864+
865+
> [!TIP]
866+
> Strongly type your functions by leveraging new types exported from the `durable-functions` package!
867+
868+
:::zone-end
869+
870+
# Troubleshooting
871+
872+
If you see the following error when running your orchestration code, make sure you are running on the at least `v4.16.5` of the [Azure Functions Runtime](../functions-versions.md?tabs=v4&pivots=programming-language-javascript) or at least `v4.0.5095` of [Azure Functions Core Tools](../functions-run-local.md?tabs=v4) if running locally.
873+
874+
```bash
875+
Exception: The orchestrator can not execute without an OrchestratorStarted event.
876+
Stack: TypeError: The orchestrator can not execute without an OrchestratorStarted event.
877+
```

0 commit comments

Comments
 (0)