Unverified Commit 44a04acd authored by Ben's avatar Ben Committed by GitHub

Update typescript.md (#11717)

just add file name to avoid wrong file name like `_app.ts`
parent 43b9f8fb
...@@ -97,7 +97,7 @@ export default (req: NextApiRequest, res: NextApiResponse<Data>) => { ...@@ -97,7 +97,7 @@ export default (req: NextApiRequest, res: NextApiResponse<Data>) => {
## Custom `App` ## 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 ```ts
import { AppProps } from 'next/app' import { AppProps } from 'next/app'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment