Skip to content

Commit

Permalink
(refactor) Import TFunction annotation from i18next
Browse files Browse the repository at this point in the history
  • Loading branch information
denniskigen committed Sep 14, 2023
1 parent 8789b02 commit 417d681
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/error-utils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { showToast } from '@openmrs/esm-framework';
import { TFunction } from 'react-i18next';
import { TFunction } from 'i18next';

export function reportError(error: Error, t: TFunction<'translation', undefined>): void {
export function reportError(error: Error, t: TFunction): void {
if (error) {
console.error(error);
showToast({
Expand Down

0 comments on commit 417d681

Please sign in to comment.