From dd3bb73d8078f8206dcca2660ba706c5e9e4f6bd Mon Sep 17 00:00:00 2001 From: Danny Tatom Date: Mon, 27 Jan 2020 03:51:34 -0800 Subject: [PATCH] Update typo in typescript docs (#10276) --- docs/basic-features/typescript.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/basic-features/typescript.md b/docs/basic-features/typescript.md index aa2366a9fc29..f0f9a6d4700c 100644 --- a/docs/basic-features/typescript.md +++ b/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: 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' }) } ``` @@ -115,6 +115,6 @@ type Data = { } export default (req: NextApiRequest, res: NextApiResponse) => { - res.status(200).json({ name: 'Jhon Doe' }) + res.status(200).json({ name: 'John Doe' }) } ```