We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeScript 5.6.2, ts-results-es 4.2.0.
async function f(x: Result<string, number>) { const y1 = x.toAsyncResult() const y2 = y1.andThen((value) => Ok('success')) const final = await y2.promise }
final's type is Result<string, unknown> while ideally it should be Result<string, number>.
final
Result<string, unknown>
Result<string, number>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
TypeScript 5.6.2, ts-results-es 4.2.0.
final
's type isResult<string, unknown>
while ideally it should beResult<string, number>
.The text was updated successfully, but these errors were encountered: