Skip to content

Commit edceeda

Browse files
committed
added typescript support
1 parent a8455b2 commit edceeda

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+904
-395
lines changed

.babelrc

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"presets": [
3-
"next/babel"
3+
"next/babel",
4+
"@zeit/next-typescript/babel",
45
],
56
"plugins": [
67
["module-resolver", {

README.md

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# next-postgres-with-typescript
2+
This is a fork of the wonderful next-postgres repo by @jimmylee with additional support for Typescript and Now. This should compile successfully as is, but it still relies on many 'any' types.
3+
4+
### Changes
5+
- Most files in ~/common, ~/components, ~/higher-order, and ~/pages have been converted to .tsx with provisional types.
6+
7+
### Remaining issues
8+
- IUser, IPost, and IComment need to be defined (currently all 'any')
9+
- dispatches need to be correctly typed (currently all 'any')
10+
- ~/higher-order/withData.js needs to converted to Typescript
11+
- ~/api files need to be converted to Typescript files
12+
- ~/pages/_document.tsx typing needs to be double-checked
13+
14+
15+
---
16+
117
# next-postgres
218

319
This is an example of a full stack web application with...

common/actions.js

-170
This file was deleted.

0 commit comments

Comments
 (0)