effector-react
Advanced tools
Comparing version 21.3.2 to 21.3.3
@@ -104,3 +104,5 @@ import React from 'react' | ||
export function useEvent(event: Event<void>): () => void | ||
export function useEvent<T>(event: Event<T>): (payload: T) => T | ||
export function useEvent<R>(fx: Effect<void, R, any>): () => Promise<R> | ||
export function useEvent<T, R>( | ||
@@ -107,0 +109,0 @@ fx: Effect<T, R, any>, |
@@ -104,3 +104,5 @@ import React from 'react' | ||
export function useEvent(event: Event<void>): () => void | ||
export function useEvent<T>(event: Event<T>): (payload: T) => T | ||
export function useEvent<R>(fx: Effect<void, R, any>): () => Promise<R> | ||
export function useEvent<T, R>( | ||
@@ -107,0 +109,0 @@ fx: Effect<T, R, any>, |
@@ -104,3 +104,5 @@ import React from 'react' | ||
export function useEvent(event: Event<void>): () => void | ||
export function useEvent<T>(event: Event<T>): (payload: T) => T | ||
export function useEvent<R>(fx: Effect<void, R, any>): () => Promise<R> | ||
export function useEvent<T, R>( | ||
@@ -107,0 +109,0 @@ fx: Effect<T, R, any>, |
@@ -104,3 +104,5 @@ import React from 'react' | ||
export function useEvent(event: Event<void>): () => void | ||
export function useEvent<T>(event: Event<T>): (payload: T) => T | ||
export function useEvent<R>(fx: Effect<void, R, any>): () => Promise<R> | ||
export function useEvent<T, R>( | ||
@@ -107,0 +109,0 @@ fx: Effect<T, R, any>, |
@@ -104,3 +104,5 @@ import React from 'react' | ||
export function useEvent(event: Event<void>): () => void | ||
export function useEvent<T>(event: Event<T>): (payload: T) => T | ||
export function useEvent<R>(fx: Effect<void, R, any>): () => Promise<R> | ||
export function useEvent<T, R>( | ||
@@ -107,0 +109,0 @@ fx: Effect<T, R, any>, |
{ | ||
"name": "effector-react", | ||
"version": "21.3.2", | ||
"version": "21.3.3", | ||
"description": "React bindings for effector", | ||
@@ -5,0 +5,0 @@ "main": "effector-react.cjs.js", |
@@ -14,3 +14,5 @@ import * as React from 'react' | ||
*/ | ||
export function useEvent(event: Event<void>): () => void | ||
export function useEvent<T>(event: Event<T>): (payload: T) => T | ||
export function useEvent<R>(fx: Effect<void, R, any>): () => Promise<R> | ||
export function useEvent<T, R>( | ||
@@ -17,0 +19,0 @@ fx: Effect<T, R, any>, |
176696
738