Skip to content
Permalink
Browse files

Add typescript support

  • Loading branch information...
shfshanyue committed Jul 31, 2019
1 parent 80b2425 commit 297889a5c797ea504f1028afb550f59d39bac3a6
Showing with 39 additions and 1 deletion.
  1. +2 −0 next-env.d.ts
  2. +6 −0 package-lock.json
  3. +2 −1 package.json
  4. 0 pages/{index.js → index.tsx}
  5. +29 −0 tsconfig.json
@@ -0,0 +1,2 @@
/// <reference types="next" />
/// <reference types="next/types/global" />

Some generated files are not rendered by default. Learn more.

@@ -29,6 +29,7 @@
"author": "",
"license": "ISC",
"devDependencies": {
"npm-check-updates": "^3.1.20"
"npm-check-updates": "^3.1.20",
"typescript": "^3.5.3"
}
}
File renamed without changes.
@@ -0,0 +1,29 @@
{
"compilerOptions": {
"target": "es5",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"strict": false,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve"
},
"exclude": [
"node_modules"
],
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx"
]
}

0 comments on commit 297889a

Please sign in to comment.
You can’t perform that action at this time.