{"_id":"@types/trouter","_rev":"4003606","name":"@types/trouter","description":"TypeScript definitions for trouter","dist-tags":{"latest":"3.1.4","ts2.3":"3.1.0","ts2.4":"3.1.0","ts2.5":"3.1.0","ts2.6":"3.1.0","ts2.7":"3.1.0","ts2.8":"3.1.0","ts2.9":"3.1.0","ts3.0":"3.1.0","ts3.1":"3.1.0","ts3.2":"3.1.0","ts3.3":"3.1.0","ts3.4":"3.1.0","ts3.5":"3.1.0","ts3.6":"3.1.0","ts3.7":"3.1.0","ts3.8":"3.1.1","ts3.9":"3.1.1","ts4.0":"3.1.1","ts4.1":"3.1.1","ts4.2":"3.1.1","ts4.3":"3.1.2","ts4.4":"3.1.2","ts4.5":"3.1.4","ts4.6":"3.1.4","ts4.7":"3.1.4","ts4.8":"3.1.4","ts4.9":"3.1.4","ts5.0":"3.1.4","ts5.1":"3.1.4","ts5.2":"3.1.4","ts5.3":"3.1.4","ts5.4":"3.1.4","ts5.5":"3.1.4","ts5.6":"3.1.4","ts5.7":"3.1.4","ts5.8":"3.1.4","ts5.9":"3.1.4","ts6.0":"3.1.4"},"maintainers":[{"name":"types","email":""}],"time":{"modified":"2025-09-01T02:21:30.000Z","created":"2019-03-11T22:28:01.831Z","3.1.4":"2023-11-07T18:08:45.965Z","3.1.3":"2023-10-18T16:43:07.495Z","3.1.2":"2023-09-12T12:54:50.530Z","3.1.1":"2021-12-24T00:34:30.386Z","3.1.0":"2019-07-16T21:59:02.167Z","3.0.0":"2019-03-11T22:28:01.831Z"},"users":{},"repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/trouter"},"versions":{"3.1.4":{"name":"@types/trouter","version":"3.1.4","description":"TypeScript definitions for trouter","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/trouter","license":"MIT","contributors":[],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/trouter"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"3cc6bd5aab33bced7f713b1c8d3def0d051b30125cbf6cba27dfba6d9cc011b9","typeScriptVersion":"4.5","_id":"@types/trouter@3.1.4","dist":{"shasum":"3fd8f7afab9701c455731049b22c378fd1bf8c0c","size":1878,"noattachment":false,"key":"/@types/trouter/-/@types/trouter-3.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/trouter/download/@types/trouter-3.1.4.tgz"},"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"types","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/trouter_3.1.4_1699380525718_0.8624753555992983"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-11-07T18:08:45.965Z","publish_time":1699380525965,"_source_registry_name":"default","_cnpm_publish_time":1699380525965},"3.1.3":{"name":"@types/trouter","version":"3.1.3","description":"TypeScript definitions for trouter","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/trouter","license":"MIT","contributors":[],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/trouter"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"d87ec1ca0368f4fa9ac4f66b4e1102c8db4567098752c308b497bcd364369998","typeScriptVersion":"4.5","_id":"@types/trouter@3.1.3","dist":{"shasum":"81fda389aa831d91497ee994ae50714221f82f97","size":1887,"noattachment":false,"key":"/@types/trouter/-/@types/trouter-3.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/trouter/download/@types/trouter-3.1.3.tgz"},"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"types","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/trouter_3.1.3_1697647387211_0.40841554124783275"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-10-18T16:43:07.495Z","publish_time":1697647387495,"_source_registry_name":"default","_cnpm_publish_time":1697647387495},"3.1.2":{"name":"@types/trouter","version":"3.1.2","description":"TypeScript definitions for trouter","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/trouter","license":"MIT","contributors":[{"name":"DefinitelyTyped","url":"https://github.com/DefinitelyTyped","githubUsername":"DefinitelyTyped"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/trouter"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"0089953655e7c1e9b42a8182478908cd93be09bab98a79773d718c274349a064","typeScriptVersion":"4.3","_id":"@types/trouter@3.1.2","dist":{"shasum":"39dabf0ecc6af2e532acbfa679dd895162517abc","size":1967,"noattachment":false,"key":"/@types/trouter/-/@types/trouter-3.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/trouter/download/@types/trouter-3.1.2.tgz"},"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"types","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/trouter_3.1.2_1694523290294_0.6464358685138472"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-09-12T12:54:50.530Z","publish_time":1694523290530,"_source_registry_name":"default","_cnpm_publish_time":1694523290530},"3.1.1":{"name":"@types/trouter","version":"3.1.1","description":"TypeScript definitions for trouter","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/trouter","license":"MIT","contributors":[{"name":"DefinitelyTyped","url":"https://github.com/DefinitelyTyped","githubUsername":"DefinitelyTyped"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/trouter"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"93d130baeb728f36dd15bc5eff1d28284a32ce467de828aeb42485df720248b2","typeScriptVersion":"3.8","_id":"@types/trouter@3.1.1","dist":{"shasum":"73383d3c2720d7771d5a66e13498fd5cd0aef21d","size":1927,"noattachment":false,"key":"/@types/trouter/-/@types/trouter-3.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/trouter/download/@types/trouter-3.1.1.tgz"},"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"types","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/trouter_3.1.1_1640306070251_0.6798918762472752"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-25T23:42:10.712Z","publish_time":1640306070386,"_cnpm_publish_time":1640306070386},"3.1.0":{"name":"@types/trouter","version":"3.1.0","description":"TypeScript definitions for trouter","license":"MIT","contributors":[{"name":"Markus Lanz","url":"https://github.com/stahlstift","githubUsername":"stahlstift"}],"main":"","types":"index","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/trouter"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"1c054cbc3a98e1a38ff97e4faa48932de088d20de647b91b6f603f56493c7306","typeScriptVersion":"2.3","_id":"@types/trouter@3.1.0","dist":{"shasum":"8a3c7b34352b1cb454217a194e8bf03e5cdf7cc4","size":1884,"noattachment":false,"key":"/@types/trouter/-/@types/trouter-3.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/trouter/download/@types/trouter-3.1.0.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/trouter_3.1.0_1563314342050_0.2920086253011702"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-21T07:25:21.002Z","publish_time":1563314342167,"_cnpm_publish_time":1563314342167},"3.0.0":{"name":"@types/trouter","version":"3.0.0","description":"TypeScript definitions for trouter","license":"MIT","contributors":[{"name":"Markus Lanz","url":"https://github.com/stahlstift","githubUsername":"stahlstift"}],"main":"","types":"index","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/trouter"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"08d1108bda45224f81accf6fde39f9bd7babcf0c5460f1e57aa4e33c766bab85","typeScriptVersion":"2.3","_id":"@types/trouter@3.0.0","dist":{"shasum":"5968adc2464abb1a060a3f28432996a0eb6ba70b","size":1870,"noattachment":false,"key":"/@types/trouter/-/@types/trouter-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/trouter/download/@types/trouter-3.0.0.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/trouter_3.0.0_1552343281619_0.4144036839614318"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-21T07:25:20.117Z","publish_time":1552343281831,"_cnpm_publish_time":1552343281831}},"readme":"# Installation\r\n> `npm install --save @types/trouter`\r\n\r\n# Summary\r\nThis package contains type definitions for trouter (https://github.com/lukeed/trouter).\r\n\r\n# Details\r\nFiles were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/trouter.\r\n## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/trouter/index.d.ts)\r\n````ts\r\ndeclare namespace Trouter {\n    interface FindResult<T> {\n        params: { [k: string]: string };\n        handlers: T[];\n    }\n\n    type HTTPMethod =\n        | \"ACL\"\n        | \"BIND\"\n        | \"CHECKOUT\"\n        | \"CONNECT\"\n        | \"COPY\"\n        | \"DELETE\"\n        | \"GET\"\n        | \"HEAD\"\n        | \"LINK\"\n        | \"LOCK\"\n        | \"M-SEARCH\"\n        | \"MERGE\"\n        | \"MKACTIVITY\"\n        | \"MKCALENDAR\"\n        | \"MKCOL\"\n        | \"MOVE\"\n        | \"NOTIFY\"\n        | \"OPTIONS\"\n        | \"PATCH\"\n        | \"POST\"\n        | \"PROPFIND\"\n        | \"PROPPATCH\"\n        | \"PURGE\"\n        | \"PUT\"\n        | \"REBIND\"\n        | \"REPORT\"\n        | \"SEARCH\"\n        | \"SOURCE\"\n        | \"SUBSCRIBE\"\n        | \"TRACE\"\n        | \"UNBIND\"\n        | \"UNLINK\"\n        | \"UNLOCK\"\n        | \"UNSUBSCRIBE\";\n}\n\ndeclare class Trouter<T = any> {\n    use(pattern: string | RegExp, ...handlers: T[]): this;\n\n    find(method: Trouter.HTTPMethod, url: string): Trouter.FindResult<T>;\n\n    add(method: Trouter.HTTPMethod, pattern: string | RegExp, ...handlers: T[]): this;\n\n    all(pattern: string | RegExp, ...handlers: T[]): this;\n\n    get(pattern: string | RegExp, ...handlers: T[]): this;\n\n    head(pattern: string | RegExp, ...handlers: T[]): this;\n\n    patch(pattern: string | RegExp, ...handlers: T[]): this;\n\n    options(pattern: string | RegExp, ...handlers: T[]): this;\n\n    connect(pattern: string | RegExp, ...handlers: T[]): this;\n\n    delete(pattern: string | RegExp, ...handlers: T[]): this;\n\n    trace(pattern: string | RegExp, ...handlers: T[]): this;\n\n    post(pattern: string | RegExp, ...handlers: T[]): this;\n\n    put(pattern: string | RegExp, ...handlers: T[]): this;\n}\n\nexport = Trouter;\n\r\n````\r\n\r\n### Additional Details\r\n * Last updated: Tue, 07 Nov 2023 15:11:36 GMT\r\n * Dependencies: none\r\n\r\n# Credits\r\nThese definitions were written by .\r\n","_attachments":{},"homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/trouter","license":"MIT"}