Fix isHTTPMethod validator
This commit is contained in:
@@ -20,7 +20,7 @@ export type HTTPMethod = 'post' | 'get' | 'patch' | 'put' | 'delete' | 'options'
|
||||
* @param what
|
||||
*/
|
||||
export function isHTTPMethod(what: unknown): what is HTTPMethod {
|
||||
return ['post', 'get', 'patch', 'put', 'delete'].includes(String(what))
|
||||
return ['post', 'get', 'patch', 'put', 'delete', 'options'].includes(String(what))
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user