We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0c4cb8e + 5ceda1b commit f601a4fCopy full SHA for f601a4f
src/result.ts
@@ -4,7 +4,7 @@ export function asyncResultify<T, E>(fn: () => Promise<Result<T, E>>): ResultAsy
4
return new ResultAsync(fn());
5
}
6
7
-export function unwrap<T, E extends Error>(result: Result<T, E>): any {
+export function unwrap<T, E extends Error>(result: Result<T, E>): T {
8
if (result.isErr()) {
9
throw result.error;
10
0 commit comments