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