mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Update Methods by implementing real values (#43104)
This commit is contained in:
parent
cdc9c593eb
commit
698d4c6c1c
73
types/methods/index.d.ts
vendored
73
types/methods/index.d.ts
vendored
@ -1,7 +1,78 @@
|
||||
// Type definitions for methods 1.1
|
||||
// Project: https://github.com/jshttp/methods
|
||||
// Definitions by: Carlos Precioso <https://github.com/cprecioso>
|
||||
// Michel Bitter <https://github.com/michelbitter>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare const methods: string[];
|
||||
type Method =
|
||||
| 'ACL'
|
||||
| 'BIND'
|
||||
| 'CHECKOUT'
|
||||
| 'CONNECT'
|
||||
| 'COPY'
|
||||
| 'DELETE'
|
||||
| 'GET'
|
||||
| 'HEAD'
|
||||
| 'LINK'
|
||||
| 'LOCK'
|
||||
| 'M-SEARCH'
|
||||
| 'MERGE'
|
||||
| 'MKACTIVITY'
|
||||
| 'MKCALENDAR'
|
||||
| 'MKCOL'
|
||||
| 'MOVE'
|
||||
| 'NOTIFY'
|
||||
| 'OPTIONS'
|
||||
| 'PATCH'
|
||||
| 'POST'
|
||||
| 'PROPFIND'
|
||||
| 'PROPPATCH'
|
||||
| 'PURGE'
|
||||
| 'PUT'
|
||||
| 'REBIND'
|
||||
| 'REPORT'
|
||||
| 'SEARCH'
|
||||
| 'SOURCE'
|
||||
| 'SUBSCRIBE'
|
||||
| 'TRACE'
|
||||
| 'UNBIND'
|
||||
| 'UNLINK'
|
||||
| 'UNLOCK'
|
||||
| 'UNSUBSCRIBE'
|
||||
| 'acl'
|
||||
| 'bind'
|
||||
| 'checkout'
|
||||
| 'connect'
|
||||
| 'copy'
|
||||
| 'delete'
|
||||
| 'get'
|
||||
| 'head'
|
||||
| 'link'
|
||||
| 'lock'
|
||||
| 'm-search'
|
||||
| 'merge'
|
||||
| 'mkactivity'
|
||||
| 'mkcalendar'
|
||||
| 'mkcol'
|
||||
| 'move'
|
||||
| 'notify'
|
||||
| 'options'
|
||||
| 'patch'
|
||||
| 'post'
|
||||
| 'propfind'
|
||||
| 'proppatch'
|
||||
| 'purge'
|
||||
| 'put'
|
||||
| 'rebind'
|
||||
| 'report'
|
||||
| 'search'
|
||||
| 'source'
|
||||
| 'subscribe'
|
||||
| 'trace'
|
||||
| 'unbind'
|
||||
| 'unlink'
|
||||
| 'unlock'
|
||||
| 'unsubscribe';
|
||||
|
||||
declare const methods: Method[];
|
||||
export = methods;
|
||||
|
||||
@ -1,5 +1,7 @@
|
||||
import * as methods from "methods";
|
||||
import * as methods from 'methods';
|
||||
|
||||
methods
|
||||
.slice(0)
|
||||
.map(method => method.toUpperCase());
|
||||
methods.slice(0).map(method => method.toUpperCase());
|
||||
|
||||
methods.find(item => {
|
||||
return item === 'get';
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user