Skip to content

Commit

Permalink
improve
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierZal committed Apr 20, 2024
1 parent 9f95d86 commit bd92279
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ariston/lib/APICallErrorData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ interface APICallContextDataWithErrorMessage extends APICallContextData {
const withErrorMessage = <T extends new (...args: any[]) => APICallContextData>(
base: T,
error: AxiosError,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
): new (...args: any[]) => APICallContextDataWithErrorMessage =>
): new (
...args: ConstructorParameters<T>
) => APICallContextDataWithErrorMessage =>
class extends base {
public readonly errorMessage = error.message
}
Expand Down

0 comments on commit bd92279

Please sign in to comment.