Skip to content

Commit c127168

Browse files
setup typescript
1 parent 9064974 commit c127168

10 files changed

+162
-123
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,5 @@ yarn-error.log*
3232

3333
# vercel
3434
.vercel
35+
36+
package-lock.json

next-env.d.ts

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/// <reference types="next" />
2+
/// <reference types="next/types/global" />

package-lock.json

+60-51
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+6
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,11 @@
1111
"next": "10.0.7",
1212
"react": "17.0.1",
1313
"react-dom": "17.0.1"
14+
},
15+
"devDependencies": {
16+
"@types/node": "^14.14.31",
17+
"@types/react": "^17.0.2",
18+
"@types/react-dom": "^17.0.1",
19+
"typescript": "^4.2.2"
1420
}
1521
}

pages/_app.js

-7
This file was deleted.

pages/_app.tsx

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { AppProps } from 'next/app';
2+
3+
function MyApp({ Component, pageProps }: AppProps) {
4+
return <Component {...pageProps} />;
5+
}
6+
7+
export default MyApp;
File renamed without changes.

0 commit comments

Comments
 (0)