From f9acc20bef3828dfd4c5fc87fb4fe3cc183544db Mon Sep 17 00:00:00 2001 From: Hebilicious Date: Mon, 12 Jun 2023 02:11:09 +0700 Subject: [PATCH] docs: fix `addTypeTemplate` typos (#21520) --- docs/2.guide/3.going-further/3.modules.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/2.guide/3.going-further/3.modules.md b/docs/2.guide/3.going-further/3.modules.md index 889c5b0f8b..79015d3934 100644 --- a/docs/2.guide/3.going-further/3.modules.md +++ b/docs/2.guide/3.going-further/3.modules.md @@ -463,9 +463,9 @@ export default defineNuxtModule({ #### Adding Type Declarations -You might also want to add a type declaration to the user's project (for example, to augment an Nuxt interface +You might also want to add a type declaration to the user's project (for example, to augment a Nuxt interface or provide a global type of your own). For this, Nuxt provides the `addTypeTemplate` utility that both -writes a template to disk and adds a reference to it in the generated `nuxt.d.ts` file that. +writes a template to the disk and adds a reference to it in the generated `nuxt.d.ts` file that. If your module should augment types handled by Nuxt, you can use `addTypeTemplate` to perform this operation: