From 5023cd29204c0fcb0ab4f1aa34778f4f44b7116f Mon Sep 17 00:00:00 2001 From: John Downs Date: Thu, 25 Jan 2018 21:06:47 -0800 Subject: [PATCH] Remove use of const enum. --- types/documentdb-server/index.d.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/types/documentdb-server/index.d.ts b/types/documentdb-server/index.d.ts index 1b75961aa9..f0593a595f 100644 --- a/types/documentdb-server/index.d.ts +++ b/types/documentdb-server/index.d.ts @@ -492,8 +492,9 @@ interface IRequest { getBody(): 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; \ No newline at end of file