Extract the type of the success value from a Result type.
type VoteResult = Result<"yes" | "no", Error>;type VoteOk = OkType<VoteResult>; // "yes" | "no" Copy
type VoteResult = Result<"yes" | "no", Error>;type VoteOk = OkType<VoteResult>; // "yes" | "no"
Extract the type of the success value from a Result type.