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'