Skip to content

Commit

Permalink
Fix withTranslation type (#354)
Browse files Browse the repository at this point in the history
  • Loading branch information
aralroca authored Nov 26, 2020
1 parent 69a9430 commit 621a6f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "next-translate",
"version": "0.21.0-canary.1",
"version": "0.21.0-canary.2",
"description": "Next.js utility to translate pages in a easy way.",
"license": "MIT",
"keywords": [
Expand Down Expand Up @@ -84,4 +84,4 @@
"^.+\\.jsx?$": "babel-jest"
}
}
}
}
3 changes: 1 addition & 2 deletions withTranslation.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import * as React from 'react'
import { I18n } from './'
declare function withTranslation<P = unknown>(
component: React.ComponentType<P>
): React.ComponentType<P & { i18n: I18n }>
): React.ComponentType<Omit<P, 'i18n'>>
export default withTranslation

0 comments on commit 621a6f0

Please sign in to comment.