API reference › @evolu/common › Type › UnknownNextResult
type UnknownNextResult =
| ({ readonly value: unknown; readonly ok: true } & {})
| ({ readonly error: unknown; readonly ok: false } & {});
Defined in: packages/common/src/Type.ts:12153
A nextResult Type with unknown value, error, and done components.
Use UnknownNextResult.is(value) when only the outer Result structure must
be checked and its contained values intentionally remain unknown. Because the
unknown error component also accepts Done-shaped values, this Type cannot
distinguish normal completion from an arbitrary error. Use nextResult
with concrete error and done Types when that distinction must be validated.