Skip to content

Commit

Permalink
Update typescript.md (#11717)
Browse files Browse the repository at this point in the history
just add file name to avoid wrong file name like `_app.ts`
  • Loading branch information
zfben authored Apr 7, 2020
1 parent 43b9f8f commit 44a04ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/basic-features/typescript.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export default (req: NextApiRequest, res: NextApiResponse<Data>) => {

## Custom `App`

If you have a [custom `App` ](/docs/advanced-features/custom-app), you can use the built-in type `AppProps`, like so:
If you have a [custom `App` ](/docs/advanced-features/custom-app), you can use the built-in type `AppProps` and change file name to `./pages/_app.tsx` like so:

```ts
import { AppProps } from 'next/app'
Expand Down

0 comments on commit 44a04ac

Please sign in to comment.