From 42fbf80a213f1865234ffe77405995c40b784dfa Mon Sep 17 00:00:00 2001 From: rafaelsouzaf Date: Sun, 26 Nov 2017 18:50:39 -0300 Subject: [PATCH] Replaced enum HttpMethod to types like v16. Not very elegant solution but works easily with lower/upper case :) --- types/hapi/v17/definitions/util/util.d.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/types/hapi/v17/definitions/util/util.d.ts b/types/hapi/v17/definitions/util/util.d.ts index bfe54031e8..f1c6d0c39e 100644 --- a/types/hapi/v17/definitions/util/util.d.ts +++ b/types/hapi/v17/definitions/util/util.d.ts @@ -2,9 +2,6 @@ export interface Dictionary { [key: string]: T; } -export enum HttpMethod { - Get = "get", - Post = "post", - Put = "put", - Delete= "delete", -} +export type HTTP_METHODS_PARTIAL_LOWERCASE = 'get' | 'post' | 'put' | 'patch' | 'delete' | 'options'; +export type HTTP_METHODS_PARTIAL = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | HTTP_METHODS_PARTIAL_LOWERCASE; +export type HTTP_METHODS = 'HEAD' | 'head' | HTTP_METHODS_PARTIAL;