azure-functions-ts-essentials
Version:
Essential interfaces and tools for backend development on Azure Functions with TypeScript
23 lines (22 loc) • 705 B
TypeScript
import { HttpRequest } from './http-request';
import { HttpResponse } from './http-response';
export interface Context {
invocationId?: string;
executionContext?: any;
bindings?: any;
req?: HttpRequest;
bindingData?: any;
res?: HttpResponse;
log?: {
(...message: Array<any>): void;
error(...message: Array<any>): void;
warn(...message: Array<any>): void;
info(...message: Array<any>): void;
verbose(...message: Array<any>): void;
metric(...message: Array<any>): void;
};
bind?(...args: Array<any>): void;
done(err?: Error | undefined, propertyBag?: {
[key: string]: any;
}): void;
}