from2/ 000755 001751 001751 0000000000 15076575141 013616 5 ustar 00runner 000000 000000 15076575141 15076575141 from2/LICENSE 000644 001751 001751 0000002165 15076575141 014627 0 ustar 00runner 000000 000000 15076575141 15076575141 MIT License
Copyright (c) Microsoft Corporation.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE
from2/README.md 000644 001751 001751 0000004045 15076575141 015110 0 ustar 00runner 000000 000000 15076576175 15076575141 # Installation
> `npm install --save @types/from2`
# Summary
This package contains type definitions for from2 (https://github.com/hughsk/from2).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/from2.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/from2/index.d.ts)
````ts
///
import stream = require("stream");
export = from2;
declare function from2(read: from2.ReadInput): from2.Stream;
declare function from2(opts: from2.ObjectModeOptions, read: from2.ReadObjectInput): from2.Stream;
declare function from2(opts: from2.Options, read: from2.ReadInput): from2.Stream;
declare namespace from2 {
interface Stream extends NodeJS.ReadableStream {
readonly destroyed: boolean;
destroy: (err?: Error) => void;
}
function obj(read: ReadObjectInput): Stream;
function obj(opts: { objectMode?: true | undefined } & stream.ReadableOptions, read: ReadObjectInput): Stream;
function ctor(opts?: Options): From2Ctor;
function ctor(opts: ObjectModeOptions): From2Ctor;
type ObjectModeOptions = { objectMode: true } & stream.ReadableOptions;
type Options = { objectMode?: false | undefined } & stream.ReadableOptions;
type From2Ctor = new(read: R) => Stream;
type ReadObjectInput = ReadCallback | any[];
type ReadInput = ReadCallback | Chunk[];
type ReadCallback = (size: number, next: N) => void;
type NextCallback = (err: any | undefined, chunk: Chunk) => void;
type NextObjectCallback = (err: any | undefined, chunk: any) => void;
type Chunk = string | Buffer | Uint8Array | null;
}
````
### Additional Details
* Last updated: Fri, 24 Oct 2025 04:02:41 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)
# Credits
These definitions were written by [BendingBender](https://github.com/BendingBender).
from2/index.d.ts 000644 001751 001751 0000002657 15076575141 015531 0 ustar 00runner 000000 000000 15076575141 15076575141 ///
import stream = require("stream");
export = from2;
declare function from2(read: from2.ReadInput): from2.Stream;
declare function from2(opts: from2.ObjectModeOptions, read: from2.ReadObjectInput): from2.Stream;
declare function from2(opts: from2.Options, read: from2.ReadInput): from2.Stream;
declare namespace from2 {
interface Stream extends NodeJS.ReadableStream {
readonly destroyed: boolean;
destroy: (err?: Error) => void;
}
function obj(read: ReadObjectInput): Stream;
function obj(opts: { objectMode?: true | undefined } & stream.ReadableOptions, read: ReadObjectInput): Stream;
function ctor(opts?: Options): From2Ctor;
function ctor(opts: ObjectModeOptions): From2Ctor;
type ObjectModeOptions = { objectMode: true } & stream.ReadableOptions;
type Options = { objectMode?: false | undefined } & stream.ReadableOptions;
type From2Ctor = new(read: R) => Stream;
type ReadObjectInput = ReadCallback | any[];
type ReadInput = ReadCallback | Chunk[];
type ReadCallback = (size: number, next: N) => void;
type NextCallback = (err: any | undefined, chunk: Chunk) => void;
type NextObjectCallback = (err: any | undefined, chunk: any) => void;
type Chunk = string | Buffer | Uint8Array | null;
}
from2/package.json 000644 001751 001751 0000001521 15076575141 016113 0 ustar 00runner 000000 000000 15076576175 15076575141 {
"name": "@types/from2",
"version": "2.3.6",
"description": "TypeScript definitions for from2",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/from2",
"license": "MIT",
"contributors": [
{
"name": "BendingBender",
"githubUsername": "BendingBender",
"url": "https://github.com/BendingBender"
}
],
"main": "",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/from2"
},
"scripts": {},
"dependencies": {
"@types/node": "*"
},
"peerDependencies": {},
"typesPublisherContentHash": "231ad3e62d5cc70f4246e489020d2f5e5efcffd1eec755dd42a15c020422785e",
"typeScriptVersion": "5.2"
}