{"_id":"@types/stoppable","_rev":"2955123","name":"@types/stoppable","description":"TypeScript definitions for stoppable","dist-tags":{"latest":"1.1.1","ts2.0":"1.1.0","ts2.1":"1.1.0","ts2.2":"1.1.0","ts2.3":"1.1.0","ts2.4":"1.1.0","ts2.5":"1.1.0","ts2.6":"1.1.0","ts2.7":"1.1.0","ts2.8":"1.1.0","ts2.9":"1.1.0","ts3.0":"1.1.0","ts3.1":"1.1.0","ts3.2":"1.1.0","ts3.3":"1.1.0","ts3.4":"1.1.0","ts3.5":"1.1.0","ts3.6":"1.1.1","ts3.7":"1.1.1","ts3.8":"1.1.1","ts3.9":"1.1.1","ts4.0":"1.1.1","ts4.1":"1.1.1","ts4.2":"1.1.1","ts4.3":"1.1.1","ts4.4":"1.1.1","ts4.5":"1.1.1","ts4.6":"1.1.1","ts4.7":"1.1.1","ts4.8":"1.1.1","ts4.9":"1.1.1","ts5.0":"1.1.1","ts5.1":"1.1.1"},"maintainers":[{"name":"types","email":""}],"time":{"modified":"2023-04-27T03:57:28.000Z","created":"2017-09-09T18:41:56.368Z","1.1.1":"2021-05-31T17:01:34.182Z","1.1.0":"2018-11-28T17:12:32.160Z","1.0.0":"2017-09-09T18:41:56.368Z"},"users":{},"repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/stoppable"},"versions":{"1.1.1":{"name":"@types/stoppable","version":"1.1.1","description":"TypeScript definitions for stoppable","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/stoppable","license":"MIT","contributors":[{"name":"Eric Byers","url":"https://github.com/EricByers","githubUsername":"EricByers"},{"name":"John Plusjé","url":"https://github.com/jplusje","githubUsername":"jplusje"},{"name":"BendingBender","url":"https://github.com/BendingBender","githubUsername":"BendingBender"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/stoppable"},"scripts":{},"dependencies":{"@types/node":"*"},"typesPublisherContentHash":"9d6aed80d51a632fcd46a781556cba3ba6ce7c749fe00919cd4be55dedc1aba4","typeScriptVersion":"3.6","_id":"@types/stoppable@1.1.1","dist":{"shasum":"a6f1f280e29f8f3c743277534425e0a75041d2f9","size":2307,"noattachment":false,"key":"/@types/stoppable/-/@types/stoppable-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/stoppable/download/@types/stoppable-1.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/stoppable_1.1.1_1622480494071_0.3447491483881615"},"_hasShrinkwrap":false,"publish_time":1622480494182,"_cnpm_publish_time":1622480494182,"_cnpmcore_publish_time":"2021-12-17T14:48:25.161Z"},"1.1.0":{"name":"@types/stoppable","version":"1.1.0","description":"TypeScript definitions for stoppable","license":"MIT","contributors":[{"name":"Eric Byers","url":"https://github.com/EricByers","githubUsername":"EricByers"},{"name":"John Plusjé","url":"https://github.com/jplusje","githubUsername":"jplusje"}],"main":"","types":"index","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{"@types/node":"*"},"typesPublisherContentHash":"ac410208bae9e39dea777577e68d5b26d4eae29b7c67e697e476e44cd573dfb1","typeScriptVersion":"2.0","_id":"@types/stoppable@1.1.0","dist":{"shasum":"a5fa6a48120b109ca9233eed05c67c50bc4f3b91","size":1668,"noattachment":false,"key":"/@types/stoppable/-/@types/stoppable-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/stoppable/download/@types/stoppable-1.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/stoppable_1.1.0_1543425152036_0.4706316755311948"},"_hasShrinkwrap":false,"publish_time":1543425152160,"_cnpm_publish_time":1543425152160,"_cnpmcore_publish_time":"2021-12-17T14:48:25.356Z"},"1.0.0":{"name":"@types/stoppable","version":"1.0.0","description":"TypeScript definitions for stoppable","license":"MIT","contributors":[{"name":"Eric Byers","url":"https://github.com/EricByers","githubUsername":"EricByers"}],"main":"","repository":{"type":"git","url":"https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{"@types/node":"*"},"typesPublisherContentHash":"6cdd4d3a527a376803c0d08512f251baadf21fd8d9db21164b0dd7d8ee297906","typeScriptVersion":"2.0","_id":"@types/stoppable@1.0.0","dist":{"shasum":"0157b53a2a8fd7ed6b9d4f726b627c88ab4b4e5f","size":1544,"noattachment":false,"key":"/@types/stoppable/-/@types/stoppable-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/stoppable/download/@types/stoppable-1.0.0.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stoppable-1.0.0.tgz_1504982516291_0.35879381163977087"},"directories":{},"publish_time":1504982516368,"_hasShrinkwrap":false,"_cnpm_publish_time":1504982516368,"_cnpmcore_publish_time":"2021-12-17T14:48:25.565Z"}},"readme":"# Installation\r\n> `npm install --save @types/stoppable`\r\n\r\n# Summary\r\nThis package contains type definitions for stoppable (https://github.com/hunterloftis/stoppable).\r\n\r\n# Details\r\nFiles were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/stoppable.\r\n## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/stoppable/index.d.ts)\r\n````ts\r\n// Type definitions for stoppable 1.1\n// Project: https://github.com/hunterloftis/stoppable\n// Definitions by: Eric Byers <https://github.com/EricByers>\n//                 John Plusjé <https://github.com/jplusje>\n//                 BendingBender <https://github.com/BendingBender>\n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n\n/// <reference types=\"node\" />\nimport * as http from \"http\";\nimport * as https from \"https\";\n\ndeclare namespace stoppable {\n    // Left for backwards compatibility\n    type StoppableServer = http.Server & WithStop;\n\n    interface WithStop {\n        /**\n         * Closes the server.\n         *\n         * @param callback Passed along to the existing `server.close` function to\n         * auto-register a `'close'` event. The first agrument is an error, and\n         * the second argument indicates whether it stopped gracefully.\n         */\n        stop(callback?: (e: Error | undefined, gracefully: boolean) => any): void;\n    }\n}\n\n/**\n * Decorates a server instance with a `stop` method.\n *\n * @param server Any HTTP or HTTPS Server instance.\n * @param grace Milliseconds to wait before force-closing connections. Defaults to\n *              `Infinity` (don't force-close). If you want to immediately kill all sockets\n *              you can use a grace of `0`.\n * @returns The server instance, so can be chained, or can be run as a standalone statement.\n *\n * @example\n * import * as http from 'http';\n * import stoppable = require('stoppable');\n *\n * const server = stoppable(http.createServer((req, res) => {}));\n * server.stop();\n */\ndeclare function stoppable<T extends http.Server | https.Server>(server: T, grace?: number): T & stoppable.WithStop;\n\nexport = stoppable;\n\r\n````\r\n\r\n### Additional Details\r\n * Last updated: Mon, 31 May 2021 17:01:23 GMT\r\n * Dependencies: [@types/node](https://npmjs.com/package/@types/node)\r\n * Global values: none\r\n\r\n# Credits\r\nThese definitions were written by [Eric Byers](https://github.com/EricByers), [John Plusjé](https://github.com/jplusje), and [BendingBender](https://github.com/BendingBender).\r\n","_attachments":{},"homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/stoppable","license":"MIT"}