@grapp/wave
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -65,3 +65,3 @@ import * as wonka from 'wonka'; | ||
declare function useSourceCallback<E = void>(): [Source<E>, (event: E) => void]; | ||
declare function useSourceCallback<O, E extends unknown[] = [O]>(initFn: (source: Source<E['length'] extends infer T ? (T extends 1 ? O : E) : E>) => Source<O>): [Source<O>, (...events: E) => void]; | ||
declare function useSourceCallback<O, P = O, E extends unknown[] = [O]>(initFn: (source: Source<E['length'] extends infer T ? (T extends 1 ? O : E) : E>) => Source<P>): [Source<O>, (...events: E) => void]; | ||
@@ -68,0 +68,0 @@ declare const useSubscription: <T>(source: Source<T>, nextFn?: (value: T) => void) => React.MutableRefObject<Subscription>; |
{ | ||
"name": "@grapp/wave", | ||
"description": "Bring the power of reactive programming to your React applications.", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "author": "Marcin Dziewulski <hello@mobily.pl>", |
@@ -14,4 +14,4 @@ import * as React from 'react'; | ||
export function useSourceCallback<E = void>(): [Source<E>, (event: E) => void]; | ||
export function useSourceCallback<O, E extends unknown[] = [O]>( | ||
initFn: (source: Source<E['length'] extends infer T ? (T extends 1 ? O : E) : E>) => Source<O>, | ||
export function useSourceCallback<O, P = O, E extends unknown[] = [O]>( | ||
initFn: (source: Source<E['length'] extends infer T ? (T extends 1 ? O : E) : E>) => Source<P>, | ||
): [Source<O>, (...events: E) => void]; | ||
@@ -18,0 +18,0 @@ |
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
55646