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

it-stream-types

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

it-stream-types - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

4

dist/src/index.d.ts

@@ -14,3 +14,3 @@ /**

*/
export interface Sink<Source, R = Promise<void>> {
export interface Sink<Source, R = unknown> {
(source: Source): R;

@@ -33,3 +33,3 @@ }

*/
export interface Duplex<TSource = unknown, TSink = TSource, RSink = Promise<void>> {
export interface Duplex<TSource = unknown, TSink = TSource, RSink = unknown> {
source: TSource;

@@ -36,0 +36,0 @@ sink: Sink<TSink, RSink>;

{
"name": "it-stream-types",
"version": "2.0.0",
"version": "2.0.1",
"description": "Typescript types for AsyncIterable sink/source/duplex streams",

@@ -5,0 +5,0 @@ "author": "Alex Potsides <alex@achingbrain.net>",

@@ -15,3 +15,3 @@ /**

*/
export interface Sink<Source, R = Promise<void>> {
export interface Sink<Source, R = unknown> {
(source: Source): R

@@ -36,5 +36,5 @@ }

*/
export interface Duplex<TSource = unknown, TSink = TSource, RSink = Promise<void>> {
export interface Duplex<TSource = unknown, TSink = TSource, RSink = unknown> {
source: TSource
sink: Sink<TSink, RSink>
}

Sorry, the diff of this file is not supported yet

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