> ## Documentation Index
> Fetch the complete documentation index at: https://omss.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Result

> A discriminated union representing either a successful result or a failure.

A discriminated union representing either a successful result or a failure.
Can be \{ok: true}, \{ok: true, value: T} or \{ok: false, error: E}

```typescript
type Result = T extends void ? { ok: true } : { ok: true; value: T } | { error: E; ok: false }
```


## Related topics

- [ProviderResult](/sdk-artifacts/types/ProviderResult.md)
- [ResolverResult](/sdk-artifacts/types/ResolverResult.md)
- [OMSSProviderResult](/sdk-artifacts/interfaces/OMSSProviderResult.md)
