diff --git a/pages/_document.tsx b/pages/_document.js
similarity index 77%
rename from pages/_document.tsx
rename to pages/_document.js
index 4a48cfe..d01166c 100644
--- a/pages/_document.tsx
+++ b/pages/_document.js
@@ -9,11 +9,11 @@ export default class MyDocument extends Document {
try {
ctx.renderPage = () =>
originalRenderPage({
- enhanceApp: (App: any) => (props: any) =>
- sheet.collectStyles(),
+ enhanceApp: App => props => sheet.collectStyles()
})
- const initialProps = await Document.getInitialProps(ctx)
+ const initialProps = await Document.getInitialProps(ctx);
+
return {
...initialProps,
styles: (
diff --git a/tsconfig.json b/tsconfig.json
index 4fa631c..fd21301 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -1,7 +1,11 @@
{
"compilerOptions": {
"target": "es5",
- "lib": ["dom", "dom.iterable", "esnext"],
+ "lib": [
+ "dom",
+ "dom.iterable",
+ "esnext"
+ ],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
@@ -14,6 +18,13 @@
"isolatedModules": true,
"jsx": "preserve"
},
- "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
- "exclude": ["node_modules"]
-}
+ "include": [
+ "next-env.d.ts",
+ "**/*.ts",
+ "**/*.tsx",
+ "pages/_document.js"
+ ],
+ "exclude": [
+ "node_modules"
+ ]
+}
\ No newline at end of file