rxjs-hooks
Advanced tools
Comparing version 0.4.1 to 0.4.2
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
414690