fx-flow v0.7.0 / flow / ok
Function: ok()
ok(data)
ok(
data
?):Result
<undefined
>
Generate a success result
Parameters
• data?: undefined
Returns
Result
<undefined
>
Source
packages/core/src/flow/result.ts:136
ok(data)
ok<
T
>(data
):Result
<T
>
Type parameters
• T
Parameters
• data: T
Returns
Result
<T
>