We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 429118e commit 5bfece2Copy full SHA for 5bfece2
1 file changed
packages/core/src/types.ts
@@ -187,20 +187,6 @@ export type ErrorUnionOf<F> =
187
* ```ts
188
* type ErrType = ThatError<typeof AppError>;
189
* ```
190
- *
191
- * @example
192
- * ### USE CASE: Integration with neverthrow
193
- * ```ts
194
- * function fetchData(): ResultAsync<string, ThatError<typeof AppError, 'Timeout' | 'Network'>> {
195
- * return fromPromise(
196
- * api.get('/data'),
197
- * (e: unknown) => AppError.bridge(e as Error, (err, cases) => {
198
- * if (err.message.includes('timeout')) return cases.Timeout();
199
- * return cases.Network();
200
- * }) as ThatError<typeof AppError, 'Timeout' | 'Network'>
201
- * );
202
- * }
203
- * ```
204
*/
205
export type ThatError<
206
F,
0 commit comments