Skip to content

Commit f601a4f

Browse files
authored
Merge pull request #15 from DouglasNeuroInformatics/dev
fix: incorrect type for unwrap function
2 parents 0c4cb8e + 5ceda1b commit f601a4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/result.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export function asyncResultify<T, E>(fn: () => Promise<Result<T, E>>): ResultAsy
44
return new ResultAsync(fn());
55
}
66

7-
export function unwrap<T, E extends Error>(result: Result<T, E>): any {
7+
export function unwrap<T, E extends Error>(result: Result<T, E>): T {
88
if (result.isErr()) {
99
throw result.error;
1010
}

0 commit comments

Comments
 (0)