@azure/functions
Advanced tools
Comparing version 1.2.2 to 1.2.3
@@ -13,2 +13,8 @@ /** | ||
export declare type AzureFunction = ((context: Context, ...args: any[]) => Promise<any> | void); | ||
export interface ContextBindings { | ||
[name: string]: any; | ||
} | ||
export interface ContextBindingData { | ||
[name: string]: any; | ||
} | ||
/** | ||
@@ -32,11 +38,7 @@ * The context object can be used for writing logs, reading data from bindings, setting outputs and using | ||
*/ | ||
bindings: { | ||
[key: string]: any; | ||
}; | ||
bindings: ContextBindings; | ||
/** | ||
* Trigger metadata and function invocation data. | ||
*/ | ||
bindingData: { | ||
[key: string]: any; | ||
}; | ||
bindingData: ContextBindingData; | ||
/** | ||
@@ -76,2 +78,11 @@ * TraceContext information to enable distributed tracing scenarios. | ||
} | ||
export interface HttpRequestHeaders { | ||
[name: string]: string | undefined; | ||
} | ||
export interface HttpRequestQuery { | ||
[name: string]: string | undefined; | ||
} | ||
export interface HttpRequestParams { | ||
[name: string]: string | undefined; | ||
} | ||
/** | ||
@@ -92,17 +103,11 @@ * HTTP request object. Provided to your function when using HTTP Bindings. | ||
*/ | ||
headers: { | ||
[key: string]: string; | ||
}; | ||
headers: HttpRequestHeaders; | ||
/** | ||
* Query string parameter keys and values from the URL. | ||
*/ | ||
query: { | ||
[key: string]: string; | ||
}; | ||
query: HttpRequestQuery; | ||
/** | ||
* Route parameter keys and values. | ||
*/ | ||
params: { | ||
[key: string]: string; | ||
}; | ||
params: HttpRequestParams; | ||
/** | ||
@@ -109,0 +114,0 @@ * The HTTP request body. |
{ | ||
"name": "@azure/functions", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"description": "Azure Functions types for Typescript", | ||
@@ -5,0 +5,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10145
215