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

rxjs-hooks

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rxjs-hooks - npm Package Compare versions

Comparing version 0.4.1 to 0.4.2

2

dist/cjs/use-event-callback.d.ts
import { Observable, BehaviorSubject } from 'rxjs';
import { RestrictArray, Not } from './type';
declare type VoidableCallback<EventValue> = EventValue extends void ? () => void : (val: EventValue) => void;
declare type VoidableCallback<EventValue> = [EventValue] extends [void] ? () => void : (val: EventValue) => void;
export declare type EventCallbackState<EventValue, State, Inputs = void> = [VoidableCallback<EventValue>, [State extends void ? null : State, BehaviorSubject<State | null>, BehaviorSubject<RestrictArray<Inputs> | null>]];

@@ -5,0 +5,0 @@ export declare type ReturnedState<EventValue, State, Inputs> = [EventCallbackState<EventValue, State, Inputs>[0], EventCallbackState<EventValue, State, Inputs>[1][0]];

import { Observable, BehaviorSubject } from 'rxjs';
import { RestrictArray, Not } from './type';
declare type VoidableCallback<EventValue> = EventValue extends void ? () => void : (val: EventValue) => void;
declare type VoidableCallback<EventValue> = [EventValue] extends [void] ? () => void : (val: EventValue) => void;
export declare type EventCallbackState<EventValue, State, Inputs = void> = [VoidableCallback<EventValue>, [State extends void ? null : State, BehaviorSubject<State | null>, BehaviorSubject<RestrictArray<Inputs> | null>]];

@@ -5,0 +5,0 @@ export declare type ReturnedState<EventValue, State, Inputs> = [EventCallbackState<EventValue, State, Inputs>[0], EventCallbackState<EventValue, State, Inputs>[1][0]];

{
"name": "rxjs-hooks",
"version": "0.4.1",
"version": "0.4.2",
"description": "React hooks for RxJS",

@@ -39,5 +39,5 @@ "module": "dist/esm/index.js",

"prettier": "^1.16.4",
"react": "16.8.5",
"react-dom": "16.8.5",
"react-test-renderer": "16.8.5",
"react": "16.8.6",
"react-dom": "16.8.6",
"react-test-renderer": "16.8.6",
"rxjs": "^6.4.0",

@@ -52,3 +52,3 @@ "sinon": "^7.2.4",

"tslint-eslint-rules": "^5.4.0",
"tslint-react": "^3.6.0",
"tslint-react": "^4.0.0",
"tslint-sonarts": "^1.9.0",

@@ -55,0 +55,0 @@ "typescript": "^3.3.3",

@@ -6,3 +6,3 @@ import { useEffect, useState } from 'react'

type VoidableCallback<EventValue> = EventValue extends void ? () => void : (val: EventValue) => void
type VoidableCallback<EventValue> = [EventValue] extends [void] ? () => void : (val: EventValue) => void

@@ -9,0 +9,0 @@ export type EventCallbackState<EventValue, State, Inputs = void> = [

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