Skip to content

Commit

Permalink
Add storage blob event grid source to types (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
ejizba authored Sep 12, 2023
1 parent f222fa1 commit 1a1e4e8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion types/storage.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,14 @@ export interface StorageQueueOptions {
connection: string;
}

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

export type StorageBlobInputOptions = StorageBlobOptions;
Expand Down

0 comments on commit 1a1e4e8

Please sign in to comment.