diff --git a/cli/builder.js b/cli/builder.js index 0f385d15..3469aa63 100755 --- a/cli/builder.js +++ b/cli/builder.js @@ -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 ( diff --git a/package.json b/package.json index 82df0ccb..a1039dc4 100644 --- a/package.json +++ b/package.json @@ -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": [