From 44a04acd726481c8e980fa9594d89c69b09b7dde Mon Sep 17 00:00:00 2001 From: Ben Date: Tue, 7 Apr 2020 17:48:18 +0800 Subject: [PATCH] Update typescript.md (#11717) just add file name to avoid wrong file name like `_app.ts` --- docs/basic-features/typescript.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/basic-features/typescript.md b/docs/basic-features/typescript.md index 17269a8f816a5..c0ca541c079c2 100644 --- a/docs/basic-features/typescript.md +++ b/docs/basic-features/typescript.md @@ -97,7 +97,7 @@ export default (req: NextApiRequest, res: NextApiResponse) => { ## 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'