From 69df0e39fa5886fcd8d5411c590a429e16a2c3ae Mon Sep 17 00:00:00 2001 From: Eldemarkki <38920928+Eldemarkki@users.noreply.github.com> Date: Sun, 3 Jul 2022 00:57:51 +0300 Subject: [PATCH] docs(TypeScript): Fix a few typos (#4106) --- docs/Reference/TypeScript.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/Reference/TypeScript.md b/docs/Reference/TypeScript.md index af5f3787f0..4b807aec4f 100644 --- a/docs/Reference/TypeScript.md +++ b/docs/Reference/TypeScript.md @@ -143,7 +143,7 @@ route-level `request` object. curl localhost:8080/auth?username=admin&password=Password123! ``` And it should return back `logged in!` -6. But wait theres more! The generic interfaces are also available inside route +6. But wait there's more! The generic interfaces are also available inside route level hook methods. Modify the previous route by adding a `preValidation` hook: ```typescript @@ -403,7 +403,7 @@ definitions. #### json-schema-to-ts If you do not want to generate types from your schemas, but want to use them -diretly from your code, you can use the package +directly from your code, you can use the package [json-schema-to-ts](https://www.npmjs.com/package/json-schema-to-ts). You can install it as dev-dependency. @@ -1378,7 +1378,7 @@ FastifyError is a custom error object that includes status code and validation results. It extends the Node.js `Error` type, and adds two additional, optional -properties: `statusCode: number` and `validation: ValiationResult[]`. +properties: `statusCode: number` and `validation: ValidationResult[]`. ##### fastify.ValidationResult