Replaced enum HttpMethod to types like v16. Not very elegant solution but works easily with lower/upper case :)

This commit is contained in:
rafaelsouzaf
2017-11-26 18:50:39 -03:00
parent c6edf56209
commit 42fbf80a21
+3 -6
View File
@@ -2,9 +2,6 @@ export interface Dictionary<T> {
[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;