fx-flow v0.7.0 / flow / flow
Function: flow()
flow(args)
flow<
A1
,R
>(...args
):FlowReturnValue
<[A1
,R
]>
Compose steps from left to right.
Type parameters
• A1 extends FnReturnValue
• R extends FnReturnValue
Parameters
• ...args: [A1
, (args
, modifier
) => R
]
Returns
FlowReturnValue
<[A1
, R
]>
Example
const data = (await flow(ok(filePath), andThen(readFileToStr))).unwrap()
Source
packages/core/src/flow/flow.ts:16
flow(args)
flow<
A1
,A2
,R
>(...args
):FlowReturnValue
<[A1
,A2
,R
]>
Type parameters
• A1 extends FnReturnValue
• A2 extends FnReturnValue
• R extends FnReturnValue
Parameters
• ...args: [A1
, (args
, modifier
) => A2
, (args
, modifier
) => R
]
Returns
FlowReturnValue
<[A1
, A2
, R
]>
Source
packages/core/src/flow/flow.ts:20
flow(args)
flow<
A1
,A2
,A3
,R
>(...args
):FlowReturnValue
<[A1
,A2
,A3
,R
]>
Type parameters
• A1 extends FnReturnValue
• A2 extends FnReturnValue
• A3 extends FnReturnValue
• R extends FnReturnValue
Parameters
• ...args: [A1
, (args
, modifier
) => A2
, (args
, modifier
) => A3
, (args
, modifier
) => R
]
Returns
FlowReturnValue
<[A1
, A2
, A3
, R
]>
Source
packages/core/src/flow/flow.ts:28
flow(args)
flow<
A1
,A2
,A3
,A4
,R
>(...args
):FlowReturnValue
<[A1
,A2
,A3
,A4
,R
]>
Type parameters
• A1 extends FnReturnValue
• A2 extends FnReturnValue
• A3 extends FnReturnValue
• A4 extends FnReturnValue
• R extends FnReturnValue
Parameters
• ...args: [A1
, (args
, modifier
) => A2
, (args
, modifier
) => A3
, (args
, modifier
) => A4
, (args
, modifier
) => R
]
Returns
FlowReturnValue
<[A1
, A2
, A3
, A4
, R
]>
Source
packages/core/src/flow/flow.ts:37
flow(args)
flow<
A1
,A2
,A3
,A4
,A5
,R
>(...args
):FlowReturnValue
<[A1
,A2
,A3
,A4
,A5
,R
]>
Type parameters
• A1 extends FnReturnValue
• A2 extends FnReturnValue
• A3 extends FnReturnValue
• A4 extends FnReturnValue
• A5 extends FnReturnValue
• R extends FnReturnValue
Parameters
• ...args: [A1
, (args
, modifier
) => A2
, (args
, modifier
) => A3
, (args
, modifier
) => A4
, (args
, modifier
) => A5
, (args
, modifier
) => R
]
Returns
FlowReturnValue
<[A1
, A2
, A3
, A4
, A5
, R
]>
Source
packages/core/src/flow/flow.ts:53
flow(args)
flow<
A1
,A2
,A3
,A4
,A5
,A6
,R
>(...args
):FlowReturnValue
<[A1
,A2
,A3
,A4
,A5
,A6
,R
]>
Type parameters
• A1 extends FnReturnValue
• A2 extends FnReturnValue
• A3 extends FnReturnValue
• A4 extends FnReturnValue
• A5 extends FnReturnValue
• A6 extends FnReturnValue
• R extends FnReturnValue
Parameters
• ...args: [A1
, (args
, modifier
) => A2
, (args
, modifier
) => A3
, (args
, modifier
) => A4
, (args
, modifier
) => A5
, (args
, modifier
) => A6
, (args
, modifier
) => R
]
Returns
FlowReturnValue
<[A1
, A2
, A3
, A4
, A5
, A6
, R
]>
Source
packages/core/src/flow/flow.ts:71
flow(args)
flow<
A1
,A2
,A3
,A4
,A5
,A6
,A7
,R
>(...args
):FlowReturnValue
<[A1
,A2
,A3
,A4
,A5
,A6
,A7
,R
]>
Type parameters
• A1 extends FnReturnValue
• A2 extends FnReturnValue
• A3 extends FnReturnValue
• A4 extends FnReturnValue
• A5 extends FnReturnValue
• A6 extends FnReturnValue
• A7 extends FnReturnValue
• R extends FnReturnValue
Parameters
• ...args: [A1
, (args
, modifier
) => A2
, (args
, modifier
) => A3
, (args
, modifier
) => A4
, (args
, modifier
) => A5
, (args
, modifier
) => A6
, (args
, modifier
) => A7
, (args
, modifier
) => R
]
Returns
FlowReturnValue
<[A1
, A2
, A3
, A4
, A5
, A6
, A7
, R
]>
Source
packages/core/src/flow/flow.ts:91
flow(args)
flow<
A1
,A2
,A3
,A4
,A5
,A6
,A7
,A8
,R
>(...args
):FlowReturnValue
<[A1
,A2
,A3
,A4
,A5
,A6
,A7
,A8
,R
]>
Type parameters
• A1 extends FnReturnValue
• 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: [A1
, (args
, modifier
) => A2
, (args
, modifier
) => A3
, (args
, modifier
) => A4
, (args
, modifier
) => A5
, (args
, modifier
) => A6
]
Returns
FlowReturnValue
<[A1
, A2
, A3
, A4
, A5
, A6
, A7
, A8
, R
]>
Source
packages/core/src/flow/flow.ts:113
flow(args)
flow<
A1
,A2
,A3
,A4
,A5
,A6
,A7
,A8
,A9
,R
>(...args
):FlowReturnValue
<[A1
,A2
,A3
,A4
,A5
,A6
,A7
,A8
,A9
,R
]>
Type parameters
• A1 extends FnReturnValue
• 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: [A1
, (args
, modifier
) => A2
, (args
, modifier
) => A3
, (args
, modifier
) => A4
, (args
, modifier
) => A5
, (args
, modifier
) => A6
]
Returns
FlowReturnValue
<[A1
, A2
, A3
, A4
, A5
, A6
, A7
, A8
, A9
, R
]>
Source
packages/core/src/flow/flow.ts:137
flow(args)
flow<
A1
,A2
,A3
,A4
,A5
,A6
,A7
,A8
,A9
,A10
,R
>(...args
):FlowReturnValue
<[A1
,A2
,A3
,A4
,A5
,A6
,A7
,A8
,A9
,A10
,R
]>
Type parameters
• A1 extends FnReturnValue
• 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: [A1
, (args
, modifier
) => A2
, (args
, modifier
) => A3
, (args
, modifier
) => A4
, (args
, modifier
) => A5
, (args
, modifier
) => A6
]
Returns
FlowReturnValue
<[A1
, A2
, A3
, A4
, A5
, A6
, A7
, A8
, A9
, A10
, R
]>
Source
packages/core/src/flow/flow.ts:163
flow(args)
flow<
A1
,A2
,A3
,A4
,A5
,A6
,A7
,A8
,A9
,A10
,A11
,R
>(...args
):FlowReturnValue
<[A1
,A2
,A3
,A4
,A5
,A6
,A7
,A8
,A9
,A10
,A11
,R
]>
Type parameters
• A1 extends FnReturnValue
• 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: [A1
, (args
, modifier
) => A2
, (args
, modifier
) => A3
, (args
, modifier
) => A4
, (args
, modifier
) => A5
, (args
, modifier
) => A6
]
Returns
FlowReturnValue
<[A1
, A2
, A3
, A4
, A5
, A6
, A7
, A8
, A9
, A10
, A11
, R
]>
Source
packages/core/src/flow/flow.ts:191
flow(args)
flow<
A1
,A2
,A3
,A4
,A5
,A6
,A7
,A8
,A9
,A10
,A11
,A12
,R
>(...args
):FlowReturnValue
<[A1
,A2
,A3
,A4
,A5
,A6
,A7
,A8
,A9
,A10
,A11
,A12
,R
]>
Type parameters
• A1 extends FnReturnValue
• 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: [A1
, (args
, modifier
) => A2
, (args
, modifier
) => A3
, (args
, modifier
) => A4
, (args
, modifier
) => A5
, (args
, modifier
) => A6
]
Returns
FlowReturnValue
<[A1
, A2
, A3
, A4
, A5
, A6
, A7
, A8
, A9
, A10
, A11
, A12
, R
]>
Source
packages/core/src/flow/flow.ts:221
flow(args)
flow<
A1
,A2
,A3
,A4
,A5
,A6
,A7
,A8
,A9
,A10
,A11
,A12
,A13
,R
>(...args
):FlowReturnValue
<[A1
,A2
,A3
,A4
,A5
,A6
,A7
,A8
,A9
,A10
,A11
,A12
,A13
,R
]>
Type parameters
• A1 extends FnReturnValue
• 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: [A1
, (args
, modifier
) => A2
, (args
, modifier
) => A3
, (args
, modifier
) => A4
, (args
, modifier
) => A5
, (args
, modifier
) => A6
]
Returns
FlowReturnValue
<[A1
, A2
, A3
, A4
, A5
, A6
, A7
, A8
, A9
, A10
, A11
, A12
, A13
, R
]>
Source
packages/core/src/flow/flow.ts:253
flow(args)
flow<
A1
,A2
,A3
,A4
,A5
,A6
,A7
,A8
,A9
,A10
,A11
,A12
,A13
,A14
,R
>(...args
):FlowReturnValue
<[A1
,A2
,A3
,A4
,A5
,A6
,A7
,A8
,A9
,A10
,A11
,A12
,A13
,A14
,R
]>
Type parameters
• A1 extends FnReturnValue
• 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: [A1
, (args
, modifier
) => A2
, (args
, modifier
) => A3
, (args
, modifier
) => A4
, (args
, modifier
) => A5
, (args
, modifier
) => A6
]
Returns
FlowReturnValue
<[A1
, A2
, A3
, A4
, A5
, A6
, A7
, A8
, A9
, A10
, A11
, A12
, A13
, A14
, R
]>
Source
packages/core/src/flow/flow.ts:287
flow(args)
flow<
A1
,A2
,A3
,A4
,A5
,A6
,A7
,A8
,A9
,A10
,A11
,A12
,A13
,A14
,A15
,R
>(...args
):FlowReturnValue
<[A1
,A2
,A3
,A4
,A5
,A6
,A7
,A8
,A9
,A10
,A11
,A12
,A13
,A14
,A15
,R
]>
Type parameters
• A1 extends FnReturnValue
• 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: [A1
, (args
, modifier
) => A2
, (args
, modifier
) => A3
, (args
, modifier
) => A4
, (args
, modifier
) => A5
, (args
, modifier
) => A6
]
Returns
FlowReturnValue
<[A1
, A2
, A3
, A4
, A5
, A6
, A7
, A8
, A9
, A10
, A11
, A12
, A13
, A14
, A15
, R
]>
Source
packages/core/src/flow/flow.ts:323
flow(args)
flow<
A1
,A2
,A3
,A4
,A5
,A6
,A7
,A8
,A9
,A10
,A11
,A12
,A13
,A14
,A15
,A16
,R
>(...args
):FlowReturnValue
<[A1
,A2
,A3
,A4
,A5
,A6
,A7
,A8
,A9
,A10
,A11
,A12
,A13
,A14
,A15
,A16
,R
]>
Type parameters
• A1 extends FnReturnValue
• 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: [A1
, (args
, modifier
) => A2
, (args
, modifier
) => A3
, (args
, modifier
) => A4
, (args
, modifier
) => A5
, (args
, modifier
) => A6
]
Returns
FlowReturnValue
<[A1
, A2
, A3
, A4
, A5
, A6
, A7
, A8
, A9
, A10
, A11
, A12
, A13
, A14
, A15
, A16
, R
]>
Source
packages/core/src/flow/flow.ts:361
flow(args)
flow<
A1
,A2
,A3
,A4
,A5
,A6
,A7
,A8
,A9
,A10
,A11
,A12
,A13
,A14
,A15
,A16
,A17
,R
>(...args
):FlowReturnValue
<[A1
,A2
,A3
,A4
,A5
,A6
,A7
,A8
,A9
,A10
,A11
,A12
,A13
,A14
,A15
,A16
,A17
,R
]>
Type parameters
• A1 extends FnReturnValue
• 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: [A1
, (args
, modifier
) => A2
, (args
, modifier
) => A3
, (args
, modifier
) => A4
, (args
, modifier
) => A5
, (args
, modifier
) => A6
]
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/flow.ts:401
flow(args)
flow<
A1
,A2
,A3
,A4
,A5
,A6
,A7
,A8
,A9
,A10
,A11
,A12
,A13
,A14
,A15
,A16
,A17
,A18
,R
>(...args
):FlowReturnValue
<[A1
,A2
,A3
,A4
,A5
,A6
,A7
,A8
,A9
,A10
,A11
,A12
,A13
,A14
,A15
,A16
,A17
,A18
,R
]>
Type parameters
• A1 extends FnReturnValue
• 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: [A1
, (args
, modifier
) => A2
, (args
, modifier
) => A3
, (args
, modifier
) => A4
, (args
, modifier
) => A5
, (args
, modifier
) => A6
]
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/flow.ts:443
flow(args)
flow<
A1
,A2
,A3
,A4
,A5
,A6
,A7
,A8
,A9
,A10
,A11
,A12
,A13
,A14
,A15
,A16
,A17
,A18
,A19
,R
>(...args
):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 FnReturnValue
• 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: [A1
, (args
, modifier
) => A2
, (args
, modifier
) => A3
, (args
, modifier
) => A4
, (args
, modifier
) => A5
, (args
, modifier
) => A6
]
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/flow.ts:487
flow(args)
flow<
A1
,A2
,A3
,A4
,A5
,A6
,A7
,A8
,A9
,A10
,A11
,A12
,A13
,A14
,A15
,A16
,A17
,A18
,A19
,A20
,R
>(...args
):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 FnReturnValue
• 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: [A1
, (args
, modifier
) => A2
, (args
, modifier
) => A3
, (args
, modifier
) => A4
, (args
, modifier
) => A5
, (args
, modifier
) => A6
]
Returns
FlowReturnValue
<[A1
, A2
, A3
, A4
, A5
, A6
, A7
, A8
, A9
, A10
, A11
, A12
, A13
, A14
, A15
, A16
, A17
, A18
, A19
, A20
, R
]>