Represents a failed result.
import { Result } from '@praha/byethrow';const failure: Result.Failure<string> = { type: 'Failure', error: 'Something went wrong',}; Copy
import { Result } from '@praha/byethrow';const failure: Result.Failure<string> = { type: 'Failure', error: 'Something went wrong',};
The type of the error.
Readonly
Represents a failed result.
Example