Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/multistream

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/multistream - npm Package Compare versions

Comparing version 2.1.2 to 4.1.0

22

multistream/index.d.ts

@@ -1,4 +0,4 @@

// Type definitions for multistream 2.1
// Type definitions for multistream 4.1
// Project: https://github.com/feross/multistream
// Definitions by: mrmlnc <https://github.com/mrmlnc>
// Definitions by: mrmlnc <https://github.com/mrmlnc>, mpvharmelen <https://github.com/mpvharmelen>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

@@ -8,19 +8,21 @@

import { Stream } from 'stream';
import { Stream, Readable as ReadableStream, ReadableOptions } from 'stream';
declare function multistream(streams: multistream.Streams): NodeJS.ReadableStream;
declare class MultiStream extends ReadableStream {
constructor(streams: MultiStream.Streams, opts?: ReadableOptions);
}
interface FactoryStreamCallback {
(err: Error | null, stream: null): any;
(err: null, stream: NodeJS.ReadableStream): any;
(err: Error | null, stream: null): void;
(err: null, stream: ReadableStream): void;
}
declare namespace multistream {
declare namespace MultiStream {
type LazyStream = () => Stream;
type FactoryStream = (cb: FactoryStreamCallback) => void;
type Streams = Array<LazyStream | NodeJS.ReadableStream> | FactoryStream;
type Streams = Array<LazyStream | ReadableStream> | FactoryStream;
function obj(streams: Streams): NodeJS.ReadableStream;
function obj(streams: Streams): MultiStream;
}
export = multistream;
export = MultiStream;
{
"name": "@types/multistream",
"version": "2.1.2",
"version": "4.1.0",
"description": "TypeScript definitions for multistream",

@@ -12,2 +12,7 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/multistream",

"githubUsername": "mrmlnc"
},
{
"name": "mpvharmelen",
"url": "https://github.com/mpvharmelen",
"githubUsername": "mpvharmelen"
}

@@ -26,4 +31,4 @@ ],

},
"typesPublisherContentHash": "9a25366b6dc3634d3534ea30a381e9fa276865842a115bfc7573aad77bf0d2c2",
"typeScriptVersion": "3.8"
"typesPublisherContentHash": "dc5e162309174ab6438fda6b5590b741e56d51d11cf41e4966d90ba8fef3c47c",
"typeScriptVersion": "3.9"
}

@@ -11,5 +11,5 @@ # Installation

````ts
// Type definitions for multistream 2.1
// Type definitions for multistream 4.1
// Project: https://github.com/feross/multistream
// Definitions by: mrmlnc <https://github.com/mrmlnc>
// Definitions by: mrmlnc <https://github.com/mrmlnc>, mpvharmelen <https://github.com/mpvharmelen>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

@@ -19,20 +19,22 @@

import { Stream } from 'stream';
import { Stream, Readable as ReadableStream, ReadableOptions } from 'stream';
declare function multistream(streams: multistream.Streams): NodeJS.ReadableStream;
declare class MultiStream extends ReadableStream {
constructor(streams: MultiStream.Streams, opts?: ReadableOptions);
}
interface FactoryStreamCallback {
(err: Error | null, stream: null): any;
(err: null, stream: NodeJS.ReadableStream): any;
(err: Error | null, stream: null): void;
(err: null, stream: ReadableStream): void;
}
declare namespace multistream {
declare namespace MultiStream {
type LazyStream = () => Stream;
type FactoryStream = (cb: FactoryStreamCallback) => void;
type Streams = Array<LazyStream | NodeJS.ReadableStream> | FactoryStream;
type Streams = Array<LazyStream | ReadableStream> | FactoryStream;
function obj(streams: Streams): NodeJS.ReadableStream;
function obj(streams: Streams): MultiStream;
}
export = multistream;
export = MultiStream;

@@ -42,3 +44,3 @@ ````

### Additional Details
* Last updated: Thu, 23 Dec 2021 23:35:08 GMT
* Last updated: Thu, 10 Mar 2022 11:01:43 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)

@@ -48,2 +50,2 @@ * Global values: none

# Credits
These definitions were written by [mrmlnc](https://github.com/mrmlnc).
These definitions were written by [mrmlnc](https://github.com/mrmlnc), and [mpvharmelen](https://github.com/mpvharmelen).
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc