Skip to content

Commit

Permalink
Fix typescript anotation (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
aralroca authored Mar 11, 2020
1 parent 0c06210 commit 8c04e53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cli/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const namespaces = { ${namespaces
.map((ns, i) => `'${ns}': ns${i}`)
.join(', ')} }
export default function Page(p){
export default function Page(${isTypeScript ? 'p as any' : 'p'}){
return (
<I18nProvider lang="${lang}" namespaces={namespaces} >
<C {...p} />
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "next-translate",
"version": "0.10.1",
"version": "0.10.2",
"description": "Next.js utility to translate pages without the need of a server (static i18n pages generator).",
"license": "MIT",
"keywords": [
Expand Down

0 comments on commit 8c04e53

Please sign in to comment.