Recetaresultresult/constructorsfunctionsFunction: ok()On this pageFunction: ok() ok<T>(value): Ok<T> Defined in: result/constructors/index.ts:15 Creates a successful Result containing a value. Type Parameters T T Parameters value T The success value Returns Ok<T> An Ok Result containing the value Example const result = ok(42)// => { _tag: 'Ok', value: 42 }