Skip to content

Commit ff652ae

Browse files
committed
fix: address lint error
1 parent dec169d commit ff652ae

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export type Result<T, E extends Error = Error> = Success<T> | Failure<E>;
1919
* const [err, data] = await tryCatch(fetch("/api/data"));
2020
* ```
2121
*/
22+
/* eslint-disable @typescript-eslint/unified-signatures */
2223
// Overload: Direct Promise
2324
export function tryCatch<T, E extends Error = Error>(input: Promise<T>): Promise<Result<T, E>>;
2425
// Overload: Sync function that returns non-Promise
@@ -29,6 +30,7 @@ export function tryCatch<T, E extends Error = Error>(
2930
export function tryCatch<T, E extends Error = Error>(
3031
input: () => Promise<T>,
3132
): Promise<Result<T, E>>;
33+
/* eslint-enable @typescript-eslint/unified-signatures */
3234
// Implementation
3335
export function tryCatch<T, E extends Error = Error>(
3436
input: (() => T | Promise<T>) | Promise<T>,

0 commit comments

Comments
 (0)