From c51630db7ff15db4d3e12460b68fc95543ffa107 Mon Sep 17 00:00:00 2001 From: John Downs Date: Tue, 30 Jan 2018 08:05:29 +1100 Subject: [PATCH] Fixed return type of getOperationType() after PR comment --- types/documentdb-server/index.d.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/types/documentdb-server/index.d.ts b/types/documentdb-server/index.d.ts index f0593a595f..96934ad4b6 100644 --- a/types/documentdb-server/index.d.ts +++ b/types/documentdb-server/index.d.ts @@ -492,9 +492,8 @@ 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(): string; + getOperationType(): "Create" | "Replace" | "Upsert" | "Delete"; /** * Gets a specified request header value. * @param key the name of the header to retrieve