API reference › @evolu/common › Result › getOk
function getOk<T>(result: Result<T>): T;
Defined in: packages/common/src/Result.ts:386
Extracts the value from a Result whose error type is never.
This is useful when the type system guarantees the result cannot fail (for
example Result<T, never>), avoiding impossible if (!result.ok) branches
at call sites.