We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c71694e commit dd3bb73Copy full SHA for dd3bb73
docs/basic-features/typescript.md
@@ -101,7 +101,7 @@ The following is an example of how to use the built-in types for API routes:
101
import { NextApiRequest, NextApiResponse } from 'next'
102
103
export default (req: NextApiRequest, res: NextApiResponse) => {
104
- res.status(200).json({ name: 'Jhon Doe' })
+ res.status(200).json({ name: 'John Doe' })
105
}
106
```
107
@@ -115,6 +115,6 @@ type Data = {
115
116
117
export default (req: NextApiRequest, res: NextApiResponse<Data>) => {
118
119
120
0 commit comments