fx-flow v0.7.0 / flow / useFlow
Function: useFlow()
useFlow(args)
useFlow<
A1
,R
>(...args
): (initialValue
) =>FlowReturnValue
<[A1
,R
]>
Wrapper for flow
.
Type parameters
• A1 extends Result
<unknown
>
• R extends FnReturnValue
Parameters
• ...args: [(args
, modifier
) => R
]
Returns
Function
Parameters
• initialValue: A1
Returns
FlowReturnValue
<[A1
, R
]>
Example
const data = (await useFlow(andThen(readFileToStr))(ok(filePath))).unwrap()
Source
packages/core/src/flow/useFlow.ts:15
useFlow(args)
useFlow<
A1
,A2
,R
>(...args
): (initialValue
) =>FlowReturnValue
<[A1
,A2
,R
]>
Type parameters
• A1 extends Result
<unknown
>
• A2 extends FnReturnValue
• R extends FnReturnValue
Parameters
• ...args: [(args
, modifier
) => A2
, (args
, modifier
) => R
]
Returns
Function
Parameters
• initialValue: A1
Returns
FlowReturnValue
<[A1
, A2
, R
]>
Source
packages/core/src/flow/useFlow.ts:19
useFlow(args)
useFlow<
A1
,A2
,A3
,R
>(...args
): (initialValue
) =>FlowReturnValue
<[A1
,A2
,A3
,R
]>
Type parameters
• A1 extends Result
<unknown
>
• A2 extends FnReturnValue
• A3 extends FnReturnValue
• R extends FnReturnValue
Parameters
• ...args: [(args
, modifier
) => A2
, (args
, modifier
) => A3
, (args
, modifier
) => R
]
Returns
Function
Parameters
• initialValue: A1
Returns
FlowReturnValue
<[A1
, A2
, A3
, R
]>
Source
packages/core/src/flow/useFlow.ts:23
useFlow(args)
useFlow<
A1
,A2
,A3
,A4
,R
>(...args
): (initialValue
) =>FlowReturnValue
<[A1
,A2
,A3
,A4
,R
]>
Type parameters
• A1 extends Result
<unknown
>
• A2 extends FnReturnValue
• A3 extends FnReturnValue
• A4 extends FnReturnValue
• R extends FnReturnValue
Parameters
• ...args: [(args
, modifier
) => A2
, (args
, modifier
) => A3
, (args
, modifier
) => A4
, (args
, modifier
) => R
]
Returns
Function
Parameters
• initialValue: A1
Returns
FlowReturnValue
<[A1
, A2
, A3
, A4
, R
]>
Source
packages/core/src/flow/useFlow.ts:36
useFlow(args)
useFlow<
A1
,A2
,A3
,A4
,A5
,R
>(...args
): (initialValue
) =>FlowReturnValue
<[A1
,A2
,A3
,A4
,A5
,R
]>
Type parameters
• A1 extends Result
<unknown
>
• A2 extends FnReturnValue
• A3 extends FnReturnValue
• A4 extends FnReturnValue
• A5 extends FnReturnValue
• R extends FnReturnValue
Parameters
• ...args: [(args
, modifier
) => A2
, (args
, modifier
) => A3
, (args
, modifier
) => A4
, (args
, modifier
) => A5
, (args
, modifier
) => R
]
Returns
Function
Parameters
• initialValue: A1
Returns
FlowReturnValue
<[A1
, A2
, A3
, A4
, A5
, R
]>
Source
packages/core/src/flow/useFlow.ts:51
useFlow(args)
useFlow<
A1
,A2
,A3
,A4
,A5
,A6
,R
>(...args
): (initialValue
) =>FlowReturnValue
<[A1
,A2
,A3
,A4
,A5
,A6
,R
]>
Type parameters
• A1 extends Result
<unknown
>
• A2 extends FnReturnValue
• A3 extends FnReturnValue
• A4 extends FnReturnValue
• A5 extends FnReturnValue
• A6 extends FnReturnValue
• R extends FnReturnValue
Parameters
• ...args: [(args
, modifier
) => A2
, (args
, modifier
) => A3
, (args
, modifier
) => A4
, (args
, modifier
) => A5
, (args
, modifier
) => A6
, (args
, modifier
) => R
]
Returns
Function
Parameters
• initialValue: A1
Returns
FlowReturnValue
<[A1
, A2
, A3
, A4
, A5
, A6
, R
]>
Source
packages/core/src/flow/useFlow.ts:68
useFlow(args)
useFlow<
A1
,A2
,A3
,A4
,A5
,A6
,A7
,R
>(...args
): (initialValue
) =>FlowReturnValue
<[A1
,A2
,A3
,A4
,A5
,A6
,A7
,R
]>
Type parameters
• A1 extends Result
<unknown
>
• A2 extends FnReturnValue
• A3 extends FnReturnValue
• A4 extends FnReturnValue
• A5 extends FnReturnValue
• A6 extends FnReturnValue
• A7 extends FnReturnValue
• R extends FnReturnValue
Parameters
• ...args: [(args
, modifier
) => A2
, (args
, modifier
) => A3
, (args
, modifier
) => A4
, (args
, modifier
) => A5
, (args
, modifier
) => A6
, (args
, modifier
) => A7
, (args
, modifier
) => R
]
Returns
Function
Parameters
• initialValue: A1
Returns
FlowReturnValue
<[A1
, A2
, A3
, A4
, A5
, A6
, A7
, R
]>
Source
packages/core/src/flow/useFlow.ts:87
useFlow(args)
useFlow<
A1
,A2
,A3
,A4
,A5
,A6
,A7
,A8
,R
>(...args
): (initialValue
) =>FlowReturnValue
<[A1
,A2
,A3
,A4
,A5
,A6
,A7
,A8
,R
]>
Type parameters
• A1 extends Result
<unknown
>
• A2 extends FnReturnValue
• A3 extends FnReturnValue
• A4 extends FnReturnValue
• A5 extends FnReturnValue
• A6 extends FnReturnValue
• A7 extends FnReturnValue
• A8 extends FnReturnValue
• R extends FnReturnValue
Parameters
• ...args: [(args
, modifier
) => A2
, (args
, modifier
) => A3
, (args
, modifier
) => A4
, (args
, modifier
) => A5
, (args
, modifier
) => A6
]
Returns
Function
Parameters
• initialValue: A1
Returns
FlowReturnValue
<[A1
, A2
, A3
, A4
, A5
, A6
, A7
, A8
, R
]>
Source
packages/core/src/flow/useFlow.ts:108
useFlow(args)
useFlow<
A1
,A2
,A3
,A4
,A5
,A6
,A7
,A8
,A9
,R
>(...args
): (initialValue
) =>FlowReturnValue
<[A1
,A2
,A3
,A4
,A5
,A6
,A7
,A8
,A9
,R
]>
Type parameters
• A1 extends Result
<unknown
>
• A2 extends FnReturnValue
• A3 extends FnReturnValue
• A4 extends FnReturnValue
• A5 extends FnReturnValue
• A6 extends FnReturnValue
• A7 extends FnReturnValue
• A8 extends FnReturnValue
• A9 extends FnReturnValue
• R extends FnReturnValue
Parameters
• ...args: [(args
, modifier
) => A2
, (args
, modifier
) => A3
, (args
, modifier
) => A4
, (args
, modifier
) => A5
, (args
, modifier
) => A6
]
Returns
Function
Parameters
• initialValue: A1
Returns
FlowReturnValue
<[A1
, A2
, A3
, A4
, A5
, A6
, A7
, A8
, A9
, R
]>
Source
packages/core/src/flow/useFlow.ts:131
useFlow(args)
useFlow<
A1
,A2
,A3
,A4
,A5
,A6
,A7
,A8
,A9
,A10
,R
>(...args
): (initialValue
) =>FlowReturnValue
<[A1
,A2
,A3
,A4
,A5
,A6
,A7
,A8
,A9
,A10
,R
]>
Type parameters
• A1 extends Result
<unknown
>
• A2 extends FnReturnValue
• A3 extends FnReturnValue
• A4 extends FnReturnValue
• A5 extends FnReturnValue
• A6 extends FnReturnValue
• A7 extends FnReturnValue
• A8 extends FnReturnValue
• A9 extends FnReturnValue
• A10 extends FnReturnValue
• R extends FnReturnValue
Parameters
• ...args: [(args
, modifier
) => A2
, (args
, modifier
) => A3
, (args
, modifier
) => A4
, (args
, modifier
) => A5
, (args
, modifier
) => A6
]
Returns
Function
Parameters
• initialValue: A1
Returns
FlowReturnValue
<[A1
, A2
, A3
, A4
, A5
, A6
, A7
, A8
, A9
, A10
, R
]>
Source
packages/core/src/flow/useFlow.ts:156
useFlow(args)
useFlow<
A1
,A2
,A3
,A4
,A5
,A6
,A7
,A8
,A9
,A10
,A11
,R
>(...args
): (initialValue
) =>FlowReturnValue
<[A1
,A2
,A3
,A4
,A5
,A6
,A7
,A8
,A9
,A10
,A11
,R
]>
Type parameters
• A1 extends Result
<unknown
>
• A2 extends FnReturnValue
• A3 extends FnReturnValue
• A4 extends FnReturnValue
• A5 extends FnReturnValue
• A6 extends FnReturnValue
• A7 extends FnReturnValue
• A8 extends FnReturnValue
• A9 extends FnReturnValue
• A10 extends FnReturnValue
• A11 extends FnReturnValue
• R extends FnReturnValue
Parameters
• ...args: [(args
, modifier
) => A2
, (args
, modifier
) => A3
, (args
, modifier
) => A4
, (args
, modifier
) => A5
, (args
, modifier
) => A6
]
Returns
Function
Parameters
• initialValue: A1
Returns
FlowReturnValue
<[A1
, A2
, A3
, A4
, A5
, A6
, A7
, A8
, A9
, A10
, A11
, R
]>
Source
packages/core/src/flow/useFlow.ts:183
useFlow(args)
useFlow<
A1
,A2
,A3
,A4
,A5
,A6
,A7
,A8
,A9
,A10
,A11
,A12
,R
>(...args
): (initialValue
) =>FlowReturnValue
<[A1
,A2
,A3
,A4
,A5
,A6
,A7
,A8
,A9
,A10
,A11
,A12
,R
]>
Type parameters
• A1 extends Result
<unknown
>
• A2 extends FnReturnValue
• A3 extends FnReturnValue
• A4 extends FnReturnValue
• A5 extends FnReturnValue
• A6 extends FnReturnValue
• A7 extends FnReturnValue
• A8 extends FnReturnValue
• A9 extends FnReturnValue
• A10 extends FnReturnValue
• A11 extends FnReturnValue
• A12 extends FnReturnValue
• R extends FnReturnValue
Parameters
• ...args: [(args
, modifier
) => A2
, (args
, modifier
) => A3
, (args
, modifier
) => A4
, (args
, modifier
) => A5
, (args
, modifier
) => A6
]
Returns
Function
Parameters
• initialValue: A1
Returns
FlowReturnValue
<[A1
, A2
, A3
, A4
, A5
, A6
, A7
, A8
, A9
, A10
, A11
, A12
, R
]>
Source
packages/core/src/flow/useFlow.ts:212
useFlow(args)
useFlow<
A1
,A2
,A3
,A4
,A5
,A6
,A7
,A8
,A9
,A10
,A11
,A12
,A13
,R
>(...args
): (initialValue
) =>FlowReturnValue
<[A1
,A2
,A3
,A4
,A5
,A6
,A7
,A8
,A9
,A10
,A11
,A12
,A13
,R
]>
Type parameters
• A1 extends Result
<unknown
>
• A2 extends FnReturnValue
• A3 extends FnReturnValue
• A4 extends FnReturnValue
• A5 extends FnReturnValue
• A6 extends FnReturnValue
• A7 extends FnReturnValue
• A8 extends FnReturnValue
• A9 extends FnReturnValue
• A10 extends FnReturnValue
• A11 extends FnReturnValue
• A12 extends FnReturnValue
• A13 extends FnReturnValue
• R extends FnReturnValue
Parameters
• ...args: [(args
, modifier
) => A2
, (args
, modifier
) => A3
, (args
, modifier
) => A4
, (args
, modifier
) => A5
, (args
, modifier
) => A6
]
Returns
Function
Parameters
• initialValue: A1
Returns
FlowReturnValue
<[A1
, A2
, A3
, A4
, A5
, A6
, A7
, A8
, A9
, A10
, A11
, A12
, A13
, R
]>
Source
packages/core/src/flow/useFlow.ts:243
useFlow(args)
useFlow<
A1
,A2
,A3
,A4
,A5
,A6
,A7
,A8
,A9
,A10
,A11
,A12
,A13
,A14
,R
>(...args
): (initialValue
) =>FlowReturnValue
<[A1
,A2
,A3
,A4
,A5
,A6
,A7
,A8
,A9
,A10
,A11
,A12
,A13
,A14
,R
]>
Type parameters
• A1 extends Result
<unknown
>
• A2 extends FnReturnValue
• A3 extends FnReturnValue
• A4 extends FnReturnValue
• A5 extends FnReturnValue
• A6 extends FnReturnValue
• A7 extends FnReturnValue
• A8 extends FnReturnValue
• A9 extends FnReturnValue
• A10 extends FnReturnValue
• A11 extends FnReturnValue
• A12 extends FnReturnValue
• A13 extends FnReturnValue
• A14 extends FnReturnValue
• R extends FnReturnValue
Parameters
• ...args: [(args
, modifier
) => A2
, (args
, modifier
) => A3
, (args
, modifier
) => A4
, (args
, modifier
) => A5
, (args
, modifier
) => A6
]
Returns
Function
Parameters
• initialValue: A1
Returns
FlowReturnValue
<[A1
, A2
, A3
, A4
, A5
, A6
, A7
, A8
, A9
, A10
, A11
, A12
, A13
, A14
, R
]>
Source
packages/core/src/flow/useFlow.ts:276
useFlow(args)
useFlow<
A1
,A2
,A3
,A4
,A5
,A6
,A7
,A8
,A9
,A10
,A11
,A12
,A13
,A14
,A15
,R
>(...args
): (initialValue
) =>FlowReturnValue
<[A1
,A2
,A3
,A4
,A5
,A6
,A7
,A8
,A9
,A10
,A11
,A12
,A13
,A14
,A15
,R
]>
Type parameters
• A1 extends Result
<unknown
>
• A2 extends FnReturnValue
• A3 extends FnReturnValue
• A4 extends FnReturnValue
• A5 extends FnReturnValue
• A6 extends FnReturnValue
• A7 extends FnReturnValue
• A8 extends FnReturnValue
• A9 extends FnReturnValue
• A10 extends FnReturnValue
• A11 extends FnReturnValue
• A12 extends FnReturnValue
• A13 extends FnReturnValue
• A14 extends FnReturnValue
• A15 extends FnReturnValue
• R extends FnReturnValue
Parameters
• ...args: [(args
, modifier
) => A2
, (args
, modifier
) => A3
, (args
, modifier
) => A4
, (args
, modifier
) => A5
, (args
, modifier
) => A6
]
Returns
Function
Parameters
• initialValue: A1
Returns
FlowReturnValue
<[A1
, A2
, A3
, A4
, A5
, A6
, A7
, A8
, A9
, A10
, A11
, A12
, A13
, A14
, A15
, R
]>
Source
packages/core/src/flow/useFlow.ts:311
useFlow(args)
useFlow<
A1
,A2
,A3
,A4
,A5
,A6
,A7
,A8
,A9
,A10
,A11
,A12
,A13
,A14
,A15
,A16
,R
>(...args
): (initialValue
) =>FlowReturnValue
<[A1
,A2
,A3
,A4
,A5
,A6
,A7
,A8
,A9
,A10
,A11
,A12
,A13
,A14
,A15
,A16
,R
]>
Type parameters
• A1 extends Result
<unknown
>
• A2 extends FnReturnValue
• A3 extends FnReturnValue
• A4 extends FnReturnValue
• A5 extends FnReturnValue
• A6 extends FnReturnValue
• A7 extends FnReturnValue
• A8 extends FnReturnValue
• A9 extends FnReturnValue
• A10 extends FnReturnValue
• A11 extends FnReturnValue
• A12 extends FnReturnValue
• A13 extends FnReturnValue
• A14 extends FnReturnValue
• A15 extends FnReturnValue
• A16 extends FnReturnValue
• R extends FnReturnValue
Parameters
• ...args: [(args
, modifier
) => A2
, (args
, modifier
) => A3
, (args
, modifier
) => A4
, (args
, modifier
) => A5
, (args
, modifier
) => A6
]
Returns
Function
Parameters
• initialValue: A1
Returns
FlowReturnValue
<[A1
, A2
, A3
, A4
, A5
, A6
, A7
, A8
, A9
, A10
, A11
, A12
, A13
, A14
, A15
, A16
, R
]>
Source
packages/core/src/flow/useFlow.ts:348
useFlow(args)
useFlow<
A1
,A2
,A3
,A4
,A5
,A6
,A7
,A8
,A9
,A10
,A11
,A12
,A13
,A14
,A15
,A16
,A17
,R
>(...args
): (initialValue
) =>FlowReturnValue
<[A1
,A2
,A3
,A4
,A5
,A6
,A7
,A8
,A9
,A10
,A11
,A12
,A13
,A14
,A15
,A16
,A17
,R
]>
Type parameters
• A1 extends Result
<unknown
>
• A2 extends FnReturnValue
• A3 extends FnReturnValue
• A4 extends FnReturnValue
• A5 extends FnReturnValue
• A6 extends FnReturnValue
• A7 extends FnReturnValue
• A8 extends FnReturnValue
• A9 extends FnReturnValue
• A10 extends FnReturnValue
• A11 extends FnReturnValue
• A12 extends FnReturnValue
• A13 extends FnReturnValue
• A14 extends FnReturnValue
• A15 extends FnReturnValue
• A16 extends FnReturnValue
• A17 extends FnReturnValue
• R extends FnReturnValue
Parameters
• ...args: [(args
, modifier
) => A2
, (args
, modifier
) => A3
, (args
, modifier
) => A4
, (args
, modifier
) => A5
, (args
, modifier
) => A6
]
Returns
Function
Parameters
• initialValue: A1
Returns
FlowReturnValue
<[A1
, A2
, A3
, A4
, A5
, A6
, A7
, A8
, A9
, A10
, A11
, A12
, A13
, A14
, A15
, A16
, A17
, R
]>
Source
packages/core/src/flow/useFlow.ts:387
useFlow(args)
useFlow<
A1
,A2
,A3
,A4
,A5
,A6
,A7
,A8
,A9
,A10
,A11
,A12
,A13
,A14
,A15
,A16
,A17
,A18
,R
>(...args
): (initialValue
) =>FlowReturnValue
<[A1
,A2
,A3
,A4
,A5
,A6
,A7
,A8
,A9
,A10
,A11
,A12
,A13
,A14
,A15
,A16
,A17
,A18
,R
]>
Type parameters
• A1 extends Result
<unknown
>
• A2 extends FnReturnValue
• A3 extends FnReturnValue
• A4 extends FnReturnValue
• A5 extends FnReturnValue
• A6 extends FnReturnValue
• A7 extends FnReturnValue
• A8 extends FnReturnValue
• A9 extends FnReturnValue
• A10 extends FnReturnValue
• A11 extends FnReturnValue
• A12 extends FnReturnValue
• A13 extends FnReturnValue
• A14 extends FnReturnValue
• A15 extends FnReturnValue
• A16 extends FnReturnValue
• A17 extends FnReturnValue
• A18 extends FnReturnValue
• R extends FnReturnValue
Parameters
• ...args: [(args
, modifier
) => A2
, (args
, modifier
) => A3
, (args
, modifier
) => A4
, (args
, modifier
) => A5
, (args
, modifier
) => A6
]
Returns
Function
Parameters
• initialValue: A1
Returns
FlowReturnValue
<[A1
, A2
, A3
, A4
, A5
, A6
, A7
, A8
, A9
, A10
, A11
, A12
, A13
, A14
, A15
, A16
, A17
, A18
, R
]>
Source
packages/core/src/flow/useFlow.ts:430
useFlow(args)
useFlow<
A1
,A2
,A3
,A4
,A5
,A6
,A7
,A8
,A9
,A10
,A11
,A12
,A13
,A14
,A15
,A16
,A17
,A18
,A19
,R
>(...args
): (initialValue
) =>FlowReturnValue
<[A1
,A2
,A3
,A4
,A5
,A6
,A7
,A8
,A9
,A10
,A11
,A12
,A13
,A14
,A15
,A16
,A17
,A18
,A19
,R
]>
Type parameters
• A1 extends Result
<unknown
>
• A2 extends FnReturnValue
• A3 extends FnReturnValue
• A4 extends FnReturnValue
• A5 extends FnReturnValue
• A6 extends FnReturnValue
• A7 extends FnReturnValue
• A8 extends FnReturnValue
• A9 extends FnReturnValue
• A10 extends FnReturnValue
• A11 extends FnReturnValue
• A12 extends FnReturnValue
• A13 extends FnReturnValue
• A14 extends FnReturnValue
• A15 extends FnReturnValue
• A16 extends FnReturnValue
• A17 extends FnReturnValue
• A18 extends FnReturnValue
• A19 extends FnReturnValue
• R extends FnReturnValue
Parameters
• ...args: [(args
, modifier
) => A2
, (args
, modifier
) => A3
, (args
, modifier
) => A4
, (args
, modifier
) => A5
, (args
, modifier
) => A6
]
Returns
Function
Parameters
• initialValue: A1
Returns
FlowReturnValue
<[A1
, A2
, A3
, A4
, A5
, A6
, A7
, A8
, A9
, A10
, A11
, A12
, A13
, A14
, A15
, A16
, A17
, A18
, A19
, R
]>
Source
packages/core/src/flow/useFlow.ts:475
useFlow(args)
useFlow<
A1
,A2
,A3
,A4
,A5
,A6
,A7
,A8
,A9
,A10
,A11
,A12
,A13
,A14
,A15
,A16
,A17
,A18
,A19
,A20
,R
>(...args
): (initialValue
) =>FlowReturnValue
<[A1
,A2
,A3
,A4
,A5
,A6
,A7
,A8
,A9
,A10
,A11
,A12
,A13
,A14
,A15
,A16
,A17
,A18
,A19
,A20
,R
]>
Type parameters
• A1 extends Result
<unknown
>
• A2 extends FnReturnValue
• A3 extends FnReturnValue
• A4 extends FnReturnValue
• A5 extends FnReturnValue
• A6 extends FnReturnValue
• A7 extends FnReturnValue
• A8 extends FnReturnValue
• A9 extends FnReturnValue
• A10 extends FnReturnValue
• A11 extends FnReturnValue
• A12 extends FnReturnValue
• A13 extends FnReturnValue
• A14 extends FnReturnValue
• A15 extends FnReturnValue
• A16 extends FnReturnValue
• A17 extends FnReturnValue
• A18 extends FnReturnValue
• A19 extends FnReturnValue
• A20 extends FnReturnValue
• R extends FnReturnValue
Parameters
• ...args: [(args
, modifier
) => A2
, (args
, modifier
) => A3
, (args
, modifier
) => A4
, (args
, modifier
) => A5
, (args
, modifier
) => A6
]
Returns
Function
Parameters
• initialValue: A1
Returns
FlowReturnValue
<[A1
, A2
, A3
, A4
, A5
, A6
, A7
, A8
, A9
, A10
, A11
, A12
, A13
, A14
, A15
, A16
, A17
, A18
, A19
, A20
, R
]>