{"_id":"@types/combined-stream","_rev":"2802706","name":"@types/combined-stream","description":"TypeScript definitions for combined-stream","dist-tags":{"latest":"1.0.3","ts2.0":"1.0.2","ts2.1":"1.0.2","ts2.2":"1.0.2","ts2.3":"1.0.2","ts2.4":"1.0.2","ts2.5":"1.0.2","ts2.6":"1.0.2","ts2.7":"1.0.2","ts2.8":"1.0.2","ts2.9":"1.0.2","ts3.0":"1.0.2","ts3.1":"1.0.2","ts3.2":"1.0.2","ts3.3":"1.0.2","ts3.4":"1.0.2","ts3.5":"1.0.2","ts3.6":"1.0.3","ts3.7":"1.0.3","ts3.8":"1.0.3","ts3.9":"1.0.3","ts4.0":"1.0.3","ts4.1":"1.0.3","ts4.2":"1.0.3","ts4.3":"1.0.3","ts4.4":"1.0.3","ts4.5":"1.0.3","ts4.6":"1.0.3","ts4.7":"1.0.3","ts4.8":"1.0.3","ts4.9":"1.0.3"},"maintainers":[{"name":"npm:types","email":""},{"name":"types","email":""}],"time":{"modified":"2022-09-01T09:22:04.000Z","created":"2017-03-06T22:54:30.189Z","1.0.3":"2021-07-06T18:29:45.718Z","1.0.2":"2018-11-22T17:16:39.595Z","1.0.1":"2017-03-24T15:24:40.363Z","1.0.0":"2017-03-06T22:54:30.189Z"},"users":{},"repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/combined-stream"},"versions":{"1.0.3":{"name":"@types/combined-stream","version":"1.0.3","description":"TypeScript definitions for combined-stream","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/combined-stream","license":"MIT","contributors":[{"name":"Felix Geisendörfer","url":"https://github.com/felixge","githubUsername":"felixge"},{"name":"Tomek Łaziuk","url":"https://github.com/tlaziuk","githubUsername":"tlaziuk"},{"name":"Kon Pik","url":"https://github.com/konpikwastaken","githubUsername":"konpikwastaken"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/combined-stream"},"scripts":{},"dependencies":{"@types/node":"*"},"typesPublisherContentHash":"47dc577dbb328f12ce8553bbfc723495760e8836ac1b2b1549567a1405ad4e56","typeScriptVersion":"3.6","_id":"@types/combined-stream@1.0.3","dist":{"shasum":"ac716484e095776fce4476429a995361fee5d331","size":2254,"noattachment":false,"key":"/@types/combined-stream/-/@types/combined-stream-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/combined-stream/download/@types/combined-stream-1.0.3.tgz"},"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"npm:types","email":""},{"name":"types","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/combined-stream_1.0.3_1625596185600_0.6869142270050153"},"_hasShrinkwrap":false,"publish_time":1625596185718,"_cnpm_publish_time":1625596185718,"_cnpmcore_publish_time":"2021-12-17T09:04:27.774Z"},"1.0.2":{"name":"@types/combined-stream","version":"1.0.2","description":"TypeScript definitions for combined-stream","license":"MIT","contributors":[{"name":"Felix Geisendörfer","url":"https://github.com/felixge","githubUsername":"felixge"},{"name":"Tomek Łaziuk","url":"https://github.com/tlaziuk","githubUsername":"tlaziuk"},{"name":"Kon Pik","url":"https://github.com/konpikwastaken","githubUsername":"konpikwastaken"}],"main":"","types":"index","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{"@types/node":"*"},"typesPublisherContentHash":"f9b2462ea20ee160af6941ec66e91bc0edf191586db841b4a45d8a3b318fefc1","typeScriptVersion":"2.0","_id":"@types/combined-stream@1.0.2","dist":{"shasum":"64242e806e2d343b8246a611759a027ff2b5dd4c","size":2114,"noattachment":false,"key":"/@types/combined-stream/-/@types/combined-stream-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/combined-stream/download/@types/combined-stream-1.0.2.tgz"},"maintainers":[{"name":"npm:types","email":""},{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/combined-stream_1.0.2_1542906999449_0.0508350406996545"},"_hasShrinkwrap":false,"publish_time":1542906999595,"_cnpm_publish_time":1542906999595,"_cnpmcore_publish_time":"2021-12-17T09:04:28.008Z"},"1.0.1":{"name":"@types/combined-stream","version":"1.0.1","description":"TypeScript definitions for combined-stream","license":"MIT","contributors":[{"name":"Felix Geisendörfer","url":"https://github.com/felixge"},{"name":"Tomek Łaziuk","url":"https://github.com/tlaziuk"}],"main":"","repository":{"type":"git","url":"https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{"@types/node":"*"},"peerDependencies":{},"typesPublisherContentHash":"a5b7f0f08cc9846a8028d2ad6085e64bef45d7ba16451f110e01ec2323c0393e","typeScriptVersion":"2.0","_id":"@types/combined-stream@1.0.1","dist":{"shasum":"6b30bea7711e9e5dda9240bdcb9524e1cc4d94c2","size":1357,"noattachment":false,"key":"/@types/combined-stream/-/@types/combined-stream-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/combined-stream/download/@types/combined-stream-1.0.1.tgz"},"maintainers":[{"name":"npm:types","email":""},{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/combined-stream-1.0.1.tgz_1490369078586_0.7300871915649623"},"directories":{},"publish_time":1490369080363,"_hasShrinkwrap":false,"_cnpm_publish_time":1490369080363,"_cnpmcore_publish_time":"2021-12-17T09:04:28.258Z"},"1.0.0":{"name":"@types/combined-stream","version":"1.0.0","description":"TypeScript definitions for combined-stream","license":"MIT","contributors":[{"name":"Felix Geisendörfer","url":"https://github.com/felixge"},{"name":"Tomek Łaziuk","url":"https://github.com/tlaziuk"}],"main":"","repository":{"type":"git","url":"https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{"@types/node":"*"},"peerDependencies":{},"typesPublisherContentHash":"a40b0f9737b8afca1e97342bfb8b212ebd34e0c1166fab2de042ffa857d1f41a","typeScriptVersion":"2.0","_id":"@types/combined-stream@1.0.0","dist":{"shasum":"f09ef0b4102dfa11c58bb6233f676a6222491b98","size":1361,"noattachment":false,"key":"/@types/combined-stream/-/@types/combined-stream-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/combined-stream/download/@types/combined-stream-1.0.0.tgz"},"maintainers":[{"name":"npm:types","email":""},{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/combined-stream-1.0.0.tgz_1488840869921_0.31093795178458095"},"directories":{},"publish_time":1488840870189,"_hasShrinkwrap":false,"_cnpm_publish_time":1488840870189,"_cnpmcore_publish_time":"2021-12-17T09:04:28.608Z"}},"readme":"# Installation\r\n> `npm install --save @types/combined-stream`\r\n\r\n# Summary\r\nThis package contains type definitions for combined-stream (https://github.com/felixge/node-combined-stream).\r\n\r\n# Details\r\nFiles were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/combined-stream.\r\n## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/combined-stream/index.d.ts)\r\n````ts\r\n// Type definitions for combined-stream 1.0\n// Project: https://github.com/felixge/node-combined-stream\n// Definitions by: Felix Geisendörfer <https://github.com/felixge>, Tomek Łaziuk <https://github.com/tlaziuk>, Kon Pik <https://github.com/konpikwastaken>\n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n\n/// <reference types=\"node\" />\n\nimport { Stream } from 'stream';\n\ntype Appendable = NodeJS.ReadableStream | NodeJS.WritableStream | Buffer | string | NextFunction;\ntype NextFunction = (next: (stream: Appendable) => any) => any;\n\ninterface Options {\n    maxDataSize?: number | undefined;\n    pauseStreams?: boolean | undefined;\n}\n\ndeclare class CombinedStream extends Stream implements Options {\n    readonly writable: boolean;\n    readonly readable: boolean;\n    readonly dataSize: number;\n    maxDataSize: number;\n    pauseStreams: boolean;\n    append(stream: Appendable): this;\n    write(data: any): void;\n    pause(): void;\n    resume(): void;\n    end(): void;\n    destroy(): void;\n\n    // private properties\n    _released: boolean;\n    // @TODO it should be a type of Array<'delayed-stream' instance | Buffer | string>\n    _streams: Array<Stream | Buffer | string>;\n    _currentStream: Stream | Buffer | string | null;\n    _getNext(): void;\n    _pipeNext(): void;\n    _handleErrors(stream: NodeJS.EventEmitter): void;\n    _reset(): void;\n    _checkDataSize(): void;\n    _updateDataSize(): void;\n    _emitError(error: Error): void;\n\n    // events\n    on(event: 'close' | 'end' | 'resume' | 'pause', cb: () => void): this;\n    on(event: 'error', cb: (err: Error) => void): this;\n    on(event: 'data', cb: (data: any) => void): this;\n    once(event: 'close' | 'end' | 'resume' | 'pause', cb: () => void): this;\n    once(event: 'error', cb: (err: Error) => void): this;\n    once(event: 'data', cb: (data: any) => void): this;\n\n    static create(options?: Options): CombinedStream;\n    static isStreamLike(stream: any): stream is Stream;\n}\n\nexport = CombinedStream;\n\r\n````\r\n\r\n### Additional Details\r\n * Last updated: Tue, 06 Jul 2021 18:05:57 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 [Felix Geisendörfer](https://github.com/felixge), [Tomek Łaziuk](https://github.com/tlaziuk), and [Kon Pik](https://github.com/konpikwastaken).\r\n","_attachments":{},"homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/combined-stream","license":"MIT"}