We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51c20a0 commit 51cc8beCopy full SHA for 51cc8be
samples/CounterOrchestrationTypeScript/index.ts
@@ -3,7 +3,7 @@ import * as df from "durable-functions";
3
module.exports = df.orchestrator(function* (context) {
4
const entityId = new df.EntityId("CounterEntityTypeScript", "myCounterTS");
5
6
- const currentValue = yield context.df.callEntity<number>(entityId, "get");
+ const currentValue: number = yield context.df.callEntity<number>(entityId, "get");
7
if (currentValue < 10) {
8
yield context.df.callEntity(entityId, "add", 1);
9
}
0 commit comments