UNPKG
reactive-blocs
Version:
latest (0.1.9)
0.1.9
0.1.8
0.1.7
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
0.0.72
0.0.71
0.0.70
0.0.65
0.0.62
0.0.61
0.0.60
0.0.56
0.0.55
0.0.50
0.0.45
0.0.40
0.0.35
0.0.30
0.0.25
0.0.21
0.0.20
0.0.11
0.0.10
0.0.9
0.0.8
0.0.7
0.0.6
0.0.4
0.0.3
0.0.2
0.0.1
Reactive Blocs
github.com/nairinarinyan/reactive-blocs
nairinarinyan/reactive-blocs
reactive-blocs
/
hooks
/
use-task.d.ts
9 lines
(8 loc)
•
235 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
import
{
Task
}
from
"../tasks"
;
type
Handles
<T, E
extends
Error
> = {
result
: T;
loading
:
boolean
;
error
: E |
null
; };
export
declare
const
useTask
: <T, A, E
extends
Error
>
(
task
:
Task
<T, A, E>
) =>
Handles
<T, E>;
export
{};