Skip to content

Commit

Permalink
Update typo in typescript docs (#10276)
Browse files Browse the repository at this point in the history
  • Loading branch information
its-danny authored and timneutkens committed Jan 27, 2020
1 parent c71694e commit dd3bb73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/basic-features/typescript.md
Expand Up @@ -101,7 +101,7 @@ The following is an example of how to use the built-in types for API routes:
import { NextApiRequest, NextApiResponse } from 'next'

export default (req: NextApiRequest, res: NextApiResponse) => {
res.status(200).json({ name: 'Jhon Doe' })
res.status(200).json({ name: 'John Doe' })
}
```

Expand All @@ -115,6 +115,6 @@ type Data = {
}

export default (req: NextApiRequest, res: NextApiResponse<Data>) => {
res.status(200).json({ name: 'Jhon Doe' })
res.status(200).json({ name: 'John Doe' })
}
```

0 comments on commit dd3bb73

Please sign in to comment.