Skip to content

Commit dd3bb73

Browse files
Danny Tatomtimneutkens
authored andcommitted
Update typo in typescript docs (vercel#10276)
1 parent c71694e commit dd3bb73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/basic-features/typescript.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ The following is an example of how to use the built-in types for API routes:
101101
import { NextApiRequest, NextApiResponse } from 'next'
102102

103103
export default (req: NextApiRequest, res: NextApiResponse) => {
104-
res.status(200).json({ name: 'Jhon Doe' })
104+
res.status(200).json({ name: 'John Doe' })
105105
}
106106
```
107107

@@ -115,6 +115,6 @@ type Data = {
115115
}
116116

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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy