Skip to main content

Type Alias: Ok<T>

Ok<T> = object

Defined in: src/lib/result.ts:10

Result<T, E> — a discriminated union for fallible domain logic.

Per project conventions (CLAUDE.md), domain functions that can fail in expected ways return a Result instead of throwing. throw is reserved for genuinely unexpected/programmer errors. This keeps failure modes in the type signature and forces callers to handle them.

Type Parameters

T

T

Properties

ok

readonly ok: true

Defined in: src/lib/result.ts:10


value

readonly value: T

Defined in: src/lib/result.ts:10