You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have upgraded to 4.2.4 to 5.4.0 , now I am not able to compile , getting following error , could you please help me
client.fetchArray(of: Entry.self, matching: query) { (result: Result<HomogeneousArrayResponse<Entry>>) in
switch result {
case .success(let arrayResponse):
// handle success
case .error:
// Handle error
}
error : Generic type 'Result' specialized with too few type parameters (got 1, but expected 2)
when I try to use Contentful.Result instead of Result , got this error : No type named 'Result' in module 'Contentful'
The text was updated successfully, but these errors were encountered:
I got bit by this the other day as well. For what it's worth, I was able to work around the problem by defining the completion closure like so using Swift.Result directly:
I have upgraded to 4.2.4 to 5.4.0 , now I am not able to compile , getting following error , could you please help me
error : Generic type 'Result' specialized with too few type parameters (got 1, but expected 2)
when I try to use
Contentful.Result instead of Result
, got this error : No type named 'Result' in module 'Contentful'The text was updated successfully, but these errors were encountered: