What's Changed
1. Add Blob Trigger and Bindings helper function and their types #67
2. Add Service Bus Trigger and Bindings helper function and their types #69
2.1 Add Context.bindingData
for trigger type
interface TypedContext {
bindingData: TypedContextBindingData<T>;
}
If binding type is serviceBusTrigger
, bindingData
will be below:
export interface ServiceBusTriggerContextBindingData {
/**
* Enqueue Time UTC
*/
enqueuedTimeUtc: any;
/**
* Delivery Count
*/
deliveryCount: any;
/**
* Message ID
*/
messageId: any;
}
If binding type is httpTrigger
, bindingData
will be below:
export interface HttpTriggerContextBindingData {
query: {
[name: string]: any;
};
headers: {
[name: string]: any;
};
sys: {
methodName: string;
utcNow: string;
randGuid: string;
};
}
4. Improve binding helper inline doc of each property #65
Before
After
Affected Binding Helpers
- binding.http()
- binding.http_withReturn()
- binding.timerTrigger()
- binding.cosmosDBTrigger_v2()
- binding.cosmosDBTrigger_v4()
- binding.cosmosDBTrigger()
- binding.cosmosDB_output_v2()
- binding.cosmosDB_output_v4()
- binding.cosmosDB_output()
- binding.cosmosDB_input_v2()
- binding.cosmosDB_input_v4()
- binding.cosmosDB_input()
- binding.blobTrigger()
- binding.blob_input()
- binding.blob_output()
- binding.serviceBusTrigger()
- binding.serviceBus_output()
Pull Requests
- Improve binding helper inline doc of each property by @mildronize in #65
- Add Blob Trigger and Bindings helper function and their types by @mildronize in #67
- Add Service Bus Trigger and Bindings helper function and their types by @mildronize in #69
Full Changelog: 1.2.0...1.3.0