This type is used to get the error of a result.
const thing: Result<number, string> = err("error");type ResultError = ResultError<typeof thing>; // string Copy
const thing: Result<number, string> = err("error");type ResultError = ResultError<typeof thing>; // string
This type is used to get the error of a result.