{"_id":"@types/from2","_rev":"2803031","name":"@types/from2","description":"TypeScript definitions for from2","dist-tags":{"latest":"2.3.1","ts2.0":"2.3.0","ts2.1":"2.3.0","ts2.2":"2.3.0","ts2.3":"2.3.0","ts2.4":"2.3.0","ts2.5":"2.3.0","ts2.6":"2.3.0","ts2.7":"2.3.0","ts2.8":"2.3.0","ts2.9":"2.3.0","ts3.0":"2.3.0","ts3.1":"2.3.0","ts3.2":"2.3.0","ts3.3":"2.3.0","ts3.4":"2.3.0","ts3.5":"2.3.0","ts3.6":"2.3.1","ts3.7":"2.3.1","ts3.8":"2.3.1","ts3.9":"2.3.1","ts4.0":"2.3.1","ts4.1":"2.3.1","ts4.2":"2.3.1","ts4.3":"2.3.1","ts4.4":"2.3.1","ts4.5":"2.3.1","ts4.6":"2.3.1","ts4.7":"2.3.1","ts4.8":"2.3.1","ts4.9":"2.3.1"},"maintainers":[{"name":"types","email":""}],"time":{"modified":"2022-09-01T09:22:14.000Z","created":"2017-07-24T19:02:17.658Z","2.3.1":"2021-07-06T20:56:57.608Z","2.3.0":"2017-07-24T19:02:17.658Z"},"users":{},"repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/from2"},"versions":{"2.3.1":{"name":"@types/from2","version":"2.3.1","description":"TypeScript definitions for from2","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/from2","license":"MIT","contributors":[{"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/from2"},"scripts":{},"dependencies":{"@types/node":"*"},"typesPublisherContentHash":"3fbcba1b3460c86e48b8b0deab6d5dc0d212c9c9b7e1921f7975f205d3ef47ca","typeScriptVersion":"3.6","_id":"@types/from2@2.3.1","dist":{"shasum":"5620cc93c1a08c76691c1ba3d78ce4a37bf58277","size":1949,"noattachment":false,"key":"/@types/from2/-/@types/from2-2.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/from2/download/@types/from2-2.3.1.tgz"},"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"types","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/from2_2.3.1_1625605017452_0.7921993464876154"},"_hasShrinkwrap":false,"publish_time":1625605017608,"_cnpm_publish_time":1625605017608,"_cnpmcore_publish_time":"2021-12-18T00:10:27.321Z"},"2.3.0":{"name":"@types/from2","version":"2.3.0","description":"TypeScript definitions for from2","license":"MIT","contributors":[{"name":"BendingBender","url":"https://github.com/BendingBender"}],"main":"","repository":{"type":"git","url":"https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{"@types/node":"*"},"peerDependencies":{},"typesPublisherContentHash":"bcc62c9a6a6c4e3fc222f967cfd88f1ef34afd3eab215d558edd995ce44034e1","typeScriptVersion":"2.0","_id":"@types/from2@2.3.0","dist":{"shasum":"5a3dd8d9db0363bc1ee6b98e0538fe0ae356ac3a","size":1850,"noattachment":false,"key":"/@types/from2/-/@types/from2-2.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/from2/download/@types/from2-2.3.0.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/from2-2.3.0.tgz_1500922937579_0.7021319752093405"},"directories":{},"publish_time":1500922937658,"_hasShrinkwrap":false,"_cnpm_publish_time":1500922937658,"_cnpmcore_publish_time":"2021-12-18T00:10:27.600Z"}},"readme":"# Installation\r\n> `npm install --save @types/from2`\r\n\r\n# Summary\r\nThis package contains type definitions for from2 (https://github.com/hughsk/from2).\r\n\r\n# Details\r\nFiles were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/from2.\r\n## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/from2/index.d.ts)\r\n````ts\r\n// Type definitions for from2 2.3\n// Project: https://github.com/hughsk/from2\n// Definitions by: BendingBender <https://github.com/BendingBender>\n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n\n/// <reference types=\"node\" />\nimport * as stream from 'stream';\n\nexport = from2;\n\ndeclare function from2(read: from2.ReadInput): NodeJS.ReadableStream;\ndeclare function from2(opts: from2.ObjectModeOptions, read: from2.ReadObjectInput): NodeJS.ReadableStream;\ndeclare function from2(opts: from2.Options, read: from2.ReadInput): NodeJS.ReadableStream;\n\ndeclare namespace from2 {\n    function obj(read: ReadObjectInput): NodeJS.ReadableStream;\n    function obj(opts: { objectMode?: true | undefined } & stream.ReadableOptions, read: ReadObjectInput): NodeJS.ReadableStream;\n\n    function ctor(opts?: Options): From2Ctor<ReadInput>;\n    function ctor(opts: ObjectModeOptions): From2Ctor<ReadObjectInput>;\n\n    type ObjectModeOptions = { objectMode: true } & stream.ReadableOptions;\n    type Options = { objectMode?: false | undefined } & stream.ReadableOptions;\n\n    type From2Ctor<R extends ReadInput | ReadObjectInput> = new(read: R) => NodeJS.ReadableStream;\n\n    type ReadObjectInput = ReadCallback<NextObjectCallback> | any[];\n    type ReadInput = ReadCallback<NextCallback> | Chunk[];\n    type ReadCallback<N extends NextCallback | NextObjectCallback> = (size: number, next: N) => void;\n    type NextCallback = (err: any | undefined, chunk: Chunk) => void;\n    type NextObjectCallback = (err: any | undefined, chunk: any) => void;\n    type Chunk = string | Buffer | Uint8Array | null;\n}\n\r\n````\r\n\r\n### Additional Details\r\n * Last updated: Tue, 06 Jul 2021 20:33:01 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 [BendingBender](https://github.com/BendingBender).\r\n","_attachments":{},"homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/from2","license":"MIT"}