Skip to content

Commit 8aa03bc

Browse files
committed
add import statement
Signed-off-by: Hannah Hunter <[email protected]>
1 parent a44c470 commit 8aa03bc

9 files changed

+21
-3
lines changed

articles/azure-functions/functions-bindings-dapr-input-secret.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ public void run(
7373
In the following example, the Dapr secret input binding is paired with a Dapr invoke trigger, which is registered by the `app` object:
7474

7575
```javascript
76+
const { app, trigger } = require('@azure/functions');
77+
7678
app.generic('RetrieveSecret', {
7779
trigger: trigger.generic({
7880
type: 'daprServiceInvocationTrigger',

articles/azure-functions/functions-bindings-dapr-input-state.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ public String run(
7575
In the following example, the Dapr invoke input binding is added as an `extraInput` and paired with an HTTP trigger, which is registered by the `app` object:
7676

7777
```javascript
78+
const { app, trigger } = require('@azure/functions');
79+
7880
app.generic('StateInputBinding', {
7981
trigger: trigger.generic({
8082
type: 'httpTrigger',

articles/azure-functions/functions-bindings-dapr-output-invoke.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ public String run(
9090
In the following example, the Dapr invoke output binding is paired with an HTTP trigger, which is registered by the `app` object:
9191

9292
```javascript
93+
const { app, trigger } = require('@azure/functions');
94+
9395
app.generic('InvokeOutputBinding', {
9496
trigger: trigger.generic({
9597
type: 'httpTrigger',

articles/azure-functions/functions-bindings-dapr-output-publish.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ public String run(
7979
In the following example, the Dapr publish output binding is paired with an HTTP trigger, which is registered by the `app` object:
8080

8181
```javascript
82+
const { app, trigger } = require('@azure/functions');
83+
8284
app.generic('PublishOutputBinding', {
8385
trigger: trigger.generic({
8486
type: 'httpTrigger',

articles/azure-functions/functions-bindings-dapr-output-state.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ public String run(
8585
In the following example, the Dapr state output binding is paired with an HTTP trigger, which is registered by the `app` object:
8686

8787
```javascript
88+
const { app, trigger } = require('@azure/functions');
89+
8890
app.generic('StateOutputBinding', {
8991
trigger: trigger.generic({
9092
type: 'httpTrigger',

articles/azure-functions/functions-bindings-dapr-output.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ public String run(
8282
In the following example, the Dapr output binding is paired with the Dapr invoke output trigger, which is registered by the `app` object:
8383

8484
```javascript
85+
const { app, trigger } = require('@azure/functions');
86+
8587
app.generic('SendMessageToKafka', {
8688
trigger: trigger.generic({
8789
type: 'daprServiceInvocationTrigger',

articles/azure-functions/functions-bindings-dapr-trigger-svc-invoke.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Dapr Service Invocation trigger for Azure Functions
33
description: Learn how to run Azure Functions as Dapr service invocation data changes.
44
ms.topic: reference
5-
ms.date: 10/11/2023
5+
ms.date: 11/29/2023
66
ms.devlang: csharp, java, javascript, powershell, python
77
ms.custom: devx-track-csharp, devx-track-python, devx-track-dotnet, devx-track-extended-java, devx-track-js
88
zone_pivot_groups: programming-languages-set-functions-lang-workers
@@ -70,6 +70,8 @@ public String run(
7070
Use the `app` object to register the `daprInvokeOutput`:
7171

7272
```javascript
73+
const { app, trigger } = require('@azure/functions');
74+
7375
app.generic('InvokeOutputBinding', {
7476
trigger: trigger.generic({
7577
type: 'httpTrigger',

articles/azure-functions/functions-bindings-dapr-trigger-topic.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Dapr Topic trigger for Azure Functions
33
description: Learn how to run Azure Functions as Dapr topic data changes.
44
ms.topic: reference
5-
ms.date: 11/15/2023
5+
ms.date: 11/29/2023
66
ms.devlang: csharp, java, javascript, powershell, python
77
ms.custom: devx-track-csharp, devx-track-python, devx-track-dotnet, devx-track-extended-java, devx-track-js
88
zone_pivot_groups: programming-languages-set-functions-lang-workers
@@ -75,6 +75,8 @@ public String run(
7575
Use the `app` object to register the `daprTopicTrigger`:
7676

7777
```javascript
78+
const { app, trigger } = require('@azure/functions');
79+
7880
app.generic('TransferEventBetweenTopics', {
7981
trigger: trigger.generic({
8082
type: 'daprTopicTrigger',

articles/azure-functions/functions-bindings-dapr-trigger.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Dapr Input Bindings trigger for Azure Functions
33
description: Learn how to run Azure Functions as Dapr input binding data changes.
44
ms.topic: reference
5-
ms.date: 10/11/2023
5+
ms.date: 11/29/2023
66
ms.devlang: csharp, java, javascript, powershell, python
77
ms.custom: devx-track-csharp, devx-track-python, devx-track-dotnet, devx-track-extended-java, devx-track-js
88
zone_pivot_groups: programming-languages-set-functions-lang-workers
@@ -66,6 +66,8 @@ public String run(
6666
Use the `app` object to register the `daprBindingTrigger`:
6767

6868
```javascript
69+
const { app, trigger } = require('@azure/functions');
70+
6971
app.generic('ConsumeMessageFromKafka', {
7072
trigger: trigger.generic({
7173
type: 'daprBindingTrigger',

0 commit comments

Comments
 (0)