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.
1 parent 7c3e892 commit 9b4eb3eCopy full SHA for 9b4eb3e
packages/try-catch-tuple/src/tryCatch.ts
@@ -1,7 +1,7 @@
1
type Branded<T> = T & { __tryCatchTupleResult: never };
2
3
type DataErrorTuple<T, E> = Branded<
4
- [data: T, error: E]
+ [data: T, error: E] & never[]
5
>;
6
7
type Success<T> = DataErrorTuple<T, null>;
0 commit comments