{"_id":"@types/promise-retry","_rev":"3016654","name":"@types/promise-retry","description":"TypeScript definitions for promise-retry","dist-tags":{"latest":"1.1.4","ts2.0":"1.1.0","ts2.1":"1.1.0","ts2.2":"1.1.0","ts2.3":"1.1.3","ts2.4":"1.1.3","ts2.5":"1.1.3","ts2.6":"1.1.3","ts2.7":"1.1.3","ts2.8":"1.1.3","ts2.9":"1.1.3","ts3.0":"1.1.3","ts3.1":"1.1.3","ts3.2":"1.1.3","ts3.3":"1.1.3","ts3.4":"1.1.3","ts3.5":"1.1.3","ts3.6":"1.1.3","ts3.7":"1.1.3","ts3.8":"1.1.3","ts3.9":"1.1.3","ts4.0":"1.1.3","ts4.1":"1.1.3","ts4.2":"1.1.3","ts4.3":"1.1.3","ts4.4":"1.1.3","ts4.5":"1.1.4","ts4.6":"1.1.4","ts4.7":"1.1.4","ts4.8":"1.1.4","ts4.9":"1.1.4","ts5.0":"1.1.4","ts5.1":"1.1.4","ts5.2":"1.1.4","ts5.3":"1.1.4"},"maintainers":[{"name":"types","email":""}],"time":{"modified":"2023-10-17T06:04:33.000Z","created":"2017-11-07T19:09:06.241Z","1.1.4":"2023-09-24T07:13:28.268Z","1.1.3":"2019-01-03T17:45:58.943Z","1.1.2":"2018-05-31T20:14:17.703Z","1.1.1":"2017-11-09T22:15:28.685Z","1.1.0":"2017-11-07T19:09:06.241Z"},"users":{},"repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/promise-retry"},"versions":{"1.1.4":{"name":"@types/promise-retry","version":"1.1.4","description":"TypeScript definitions for promise-retry","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/promise-retry","license":"MIT","contributors":[{"name":"Jamie Birch","url":"https://github.com/shirakaba","githubUsername":"shirakaba"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/promise-retry"},"scripts":{},"dependencies":{"@types/retry":"*"},"typesPublisherContentHash":"92d1c515317a62eaf1775d4dd4fda1f73308fb21c9d78dbf3266a8c25b945eeb","typeScriptVersion":"4.5","_id":"@types/promise-retry@1.1.4","dist":{"shasum":"dccd78b3e92f89973394848a2a638895df08b7fd","size":2212,"noattachment":false,"key":"/@types/promise-retry/-/@types/promise-retry-1.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/promise-retry/download/@types/promise-retry-1.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/promise-retry_1.1.4_1695539608089_0.711297192194569"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-09-24T07:13:28.268Z","publish_time":1695539608268,"_source_registry_name":"default","_cnpm_publish_time":1695539608268},"1.1.3":{"name":"@types/promise-retry","version":"1.1.3","description":"TypeScript definitions for promise-retry","license":"MIT","contributors":[{"name":"Jamie Birch","url":"https://github.com/shirakaba","githubUsername":"shirakaba"}],"main":"","types":"index","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{"@types/retry":"*"},"typesPublisherContentHash":"06c40995b0e9e4da646a25aed9dd1d32591ead03ad4ebfdb15646ab86d74f697","typeScriptVersion":"2.3","_id":"@types/promise-retry@1.1.3","dist":{"shasum":"baab427419da9088a1d2f21bf56249c21b3dd43c","size":2069,"noattachment":false,"key":"/@types/promise-retry/-/@types/promise-retry-1.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/promise-retry/download/@types/promise-retry-1.1.3.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/promise-retry_1.1.3_1546537558826_0.28393741903062475"},"_hasShrinkwrap":false,"publish_time":1546537558943,"_cnpm_publish_time":1546537558943,"_cnpmcore_publish_time":"2021-12-17T00:15:27.391Z"},"1.1.2":{"name":"@types/promise-retry","version":"1.1.2","description":"TypeScript definitions for promise-retry","license":"MIT","contributors":[{"name":"Jamie Birch","url":"https://github.com/shirakaba","githubUsername":"shirakaba"}],"main":"","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{"@types/retry":"*"},"typesPublisherContentHash":"15d6f2992c313c3451da1f57f703e43b078bd3cea47bea829858396789a6d531","typeScriptVersion":"2.3","_id":"@types/promise-retry@1.1.2","dist":{"shasum":"2cfbf2048306a6579d2e193ee4874a84f204964a","size":2066,"noattachment":false,"key":"/@types/promise-retry/-/@types/promise-retry-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/promise-retry/download/@types/promise-retry-1.1.2.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/promise-retry_1.1.2_1527797657442_0.32189728303330756"},"_hasShrinkwrap":false,"publish_time":1527797657703,"_cnpm_publish_time":1527797657703,"_cnpmcore_publish_time":"2021-12-17T00:15:27.583Z"},"1.1.1":{"name":"@types/promise-retry","version":"1.1.1","description":"TypeScript definitions for promise-retry","license":"MIT","contributors":[{"name":"Jamie Birch","url":"https://github.com/shirakaba","githubUsername":"shirakaba"}],"main":"","repository":{"type":"git","url":"https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{"@types/retry":"*"},"typesPublisherContentHash":"6c392ad2570d042be9ca170df97f31b8cff9705f9500e63a6b62c222b0df7c12","typeScriptVersion":"2.3","_id":"@types/promise-retry@1.1.1","dist":{"shasum":"36f056985157073ae4e94291ac5229e45010a61f","size":2043,"noattachment":false,"key":"/@types/promise-retry/-/@types/promise-retry-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/promise-retry/download/@types/promise-retry-1.1.1.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/promise-retry-1.1.1.tgz_1510265728548_0.6744736267719418"},"directories":{},"publish_time":1510265728685,"_hasShrinkwrap":false,"_cnpm_publish_time":1510265728685,"_cnpmcore_publish_time":"2021-12-17T00:15:27.797Z"},"1.1.0":{"name":"@types/promise-retry","version":"1.1.0","description":"TypeScript definitions for promise-retry","license":"MIT","contributors":[{"name":"Jamie Birch","url":"https://github.com/shirakaba","githubUsername":"shirakaba"}],"main":"","repository":{"type":"git","url":"https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{"@types/retry":"*"},"typesPublisherContentHash":"ddd14130eaa264eefb3e33612b189648d9f0833f251ff3444025351884055184","typeScriptVersion":"2.0","_id":"@types/promise-retry@1.1.0","dist":{"shasum":"0ba68ed6eb2e2f332aa7c3e16f0beffdbdf15a91","size":2032,"noattachment":false,"key":"/@types/promise-retry/-/@types/promise-retry-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/promise-retry/download/@types/promise-retry-1.1.0.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/promise-retry-1.1.0.tgz_1510081746149_0.47214847686700523"},"directories":{},"publish_time":1510081746241,"_hasShrinkwrap":false,"_cnpm_publish_time":1510081746241,"_cnpmcore_publish_time":"2021-12-17T00:15:28.005Z"}},"readme":"# Installation\r\n> `npm install --save @types/promise-retry`\r\n\r\n# Summary\r\nThis package contains type definitions for promise-retry (https://github.com/IndigoUnited/node-promise-retry).\r\n\r\n# Details\r\nFiles were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/promise-retry.\r\n## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/promise-retry/index.d.ts)\r\n````ts\r\n// Type definitions for promise-retry 1.1\n// Project: https://github.com/IndigoUnited/node-promise-retry\n// Definitions by: Jamie Birch <https://github.com/shirakaba>\n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n// TypeScript Version: 2.3\n\nimport { OperationOptions } from \"retry\";\n/**\n * A function that is retryable, by having implicitly-bound params for both an error handler and an attempt number.\n *\n * @param retry The retry callback upon any rejection. Essentially throws the error on in the form of a { retried: err }\n * wrapper, and tags it with a 'code' field of value \"EPROMISERETRY\" so that it is recognised as needing retrying. Call\n * this from the catch() block when you want to retry a rejected attempt.\n * @param attempt The number of the attempt.\n * @returns A Promise for anything (eg. a HTTP response).\n */\ntype RetryableFn<ResolutionType> = (retry: (error: any) => never, attempt: number) => Promise<ResolutionType>;\n/**\n * Wrap all functions of the object with retry. The params can be entered in either order, just like in the original library.\n *\n * @param retryableFn The function to retry.\n * @param options The options for how long/often to retry the function for.\n * @returns The Promise resolved by the input retryableFn, or rejected (if not retried) from its catch block.\n */\ndeclare function promiseRetry<ResolutionType>(\n    retryableFn: RetryableFn<ResolutionType>,\n    options?: OperationOptions,\n): Promise<ResolutionType>;\ndeclare function promiseRetry<ResolutionType>(\n    options: OperationOptions,\n    retryableFn: RetryableFn<ResolutionType>,\n): Promise<ResolutionType>;\nexport = promiseRetry;\n\r\n````\r\n\r\n### Additional Details\r\n * Last updated: Sun, 24 Sep 2023 06:37:28 GMT\r\n * Dependencies: [@types/retry](https://npmjs.com/package/@types/retry)\r\n * Global values: none\r\n\r\n# Credits\r\nThese definitions were written by [Jamie Birch](https://github.com/shirakaba).\r\n","_attachments":{},"homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/promise-retry","license":"MIT"}