I have a Result, success don't have value.
typealias MyResult = Result<Void, Error>
Use
let myResult: MyResult = .success(())
Is it possible like this?
let myResult: MyResult = .success()
I try to change define MyResult, but not correctly :(
typealias MyResult = Result<_, Error> //Expected type
typealias MyResult = Result<nil, Error> //Expected type
Is there any other way to define this Result?