Skip to content

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>

Source

packages/core/src/flow/result.ts:137

Released under the MIT License.