Skip to content

Commit

Permalink
fix: fix build type error
Browse files Browse the repository at this point in the history
  • Loading branch information
wwwenjie committed Apr 19, 2021
1 parent 5c0c455 commit 2972b3c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/interface/react-i18next.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ import 'react-i18next'
import translation from '@locales/en/translation.json'

declare module 'react-i18next' {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
type Resources = {
// eslint-disable-next-line functional/prefer-type-literal
interface Resources {
readonly translation: typeof translation
}
}

0 comments on commit 2972b3c

Please sign in to comment.