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
pipe(// ⬇️ const obj: User = { name: 'Joe', age: 20 }R.fromNullable(obj,String('cannot be nullable')),R.flatMap((obj)=>{returnG.isNotNullable(obj.name) ? R.Ok(obj) : R.Error(String('missing name'))}),R.map((obj)=>`${obj.name} is ${obj.age} year old!`))// → Ok('Joe is 20 year old!')
Those literal strings are regarded as the type of itself instead of a string type.
Using version 3.13.1
There's a type mismatch between the Result functions
The text was updated successfully, but these errors were encountered: