fx-flow v0.7.0 / flow / log
Function: log()
log(method, result, modifier)
log<
A
>(method
,result
,modifier
):Result
<A
>
Output result of each step in flow.
Type parameters
• A
Parameters
• method: Method
• result: Result
<A
>
• modifier: Modifier
Returns
Result
<A
>
Example
typescript
flow(ok(filePath), log('INFO'), andThen(readFileToStr), expect('file should exists'))
Source
packages/core/src/flow/log.ts:17
log(method)
log<
A
>(method
): (result
,modifier
) =>Result
<A
>
Type parameters
• A
Parameters
• method: Method
Returns
Function
Parameters
• result: Result
<A
>
• modifier: Modifier
Returns
Result
<A
>