mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 22:37:03 +00:00
Replaced enum HttpMethod to types like v16. Not very elegant solution but works easily with lower/upper case :)
This commit is contained in:
+3
-6
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user