Skip to content

Commit 1a1e4e8

Browse files
authored
Add storage blob event grid source to types (#135)
1 parent f222fa1 commit 1a1e4e8

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

types/storage.d.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,14 @@ export interface StorageQueueOptions {
4343
connection: string;
4444
}
4545

46-
export type StorageBlobTriggerOptions = StorageBlobOptions;
46+
export interface StorageBlobTriggerOptions extends StorageBlobOptions {
47+
/**
48+
* The source of the triggering event.
49+
* Use `EventGrid` for an Event Grid-based blob trigger, which provides much lower latency.
50+
* The default is `LogsAndContainerScan`, which uses the standard polling mechanism to detect changes in the container.
51+
*/
52+
source?: 'EventGrid' | 'LogsAndContainerScan';
53+
}
4754
export type StorageBlobTrigger = FunctionTrigger & StorageBlobTriggerOptions;
4855

4956
export type StorageBlobInputOptions = StorageBlobOptions;

0 commit comments

Comments
 (0)