forked from vercel/next.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[with-typescript] Updated typescript and removed unused deps (vercel#…
…6116) I've updated the TypeScript dependency to the latest version. Also removed some dependencies that may not be needed. I've also fixed tslint errors which may have appeared because of previous updates to this starter kit, as well as added comments to explain some parts of the code.
- Loading branch information
1 parent
ca521b3
commit 6d41ed7
Showing
6 changed files
with
39 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
// You can include shared interfaces in a separate file and then | ||
// use them in any component by importing them. For example, to | ||
// import the interface below do: | ||
// | ||
// import IDataObject from 'path/to/interfaces'; | ||
|
||
export default interface IDataObject { | ||
id: number, | ||
id: number | ||
name: string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import * as React from "react" | ||
import * as React from 'react' | ||
import Link from 'next/link' | ||
import Layout from '../components/Layout'; | ||
import Layout from '../components/Layout' | ||
|
||
const about : React.FunctionComponent = () => ( | ||
const AboutPage: React.FunctionComponent = () => ( | ||
<Layout title="About | Next.js + TypeScript Example"> | ||
<p>This is the about page</p> | ||
<p><Link href='/'><a>Go home</a></Link></p> | ||
</Layout> | ||
) | ||
|
||
export default about; | ||
export default AboutPage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters