Remove use of const enum.

This commit is contained in:
John Downs
2018-01-25 21:06:47 -08:00
parent 5070e64b41
commit 5023cd2920

View File

@@ -492,8 +492,9 @@ interface IRequest {
getBody<T>(): T;
/**
* Gets the OperationType for the request with a pre-trigger or post-trigger.
* Note: This will be one of 'Create', 'Replace', 'Upsert', or 'Delete'.
*/
getOperationType(): OperationType;
getOperationType(): string;
/**
* Gets a specified request header value.
* @param key the name of the header to retrieve
@@ -611,13 +612,6 @@ interface IErrorCodes {
InternalServerError: number;
}
declare const enum OperationType {
Create = "Create",
Replace = "Replace",
Upsert = "Upsert",
Delete = "Delete"
}
declare function getContext(): IContext;
declare var __: I__Object;
declare var ErrorCodes: IErrorCodes;