docs: fix addTypeTemplate typos (#21520)

This commit is contained in:
Hebilicious 2023-06-12 02:11:09 +07:00 committed by GitHub
parent ce4f46385f
commit f9acc20bef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -463,9 +463,9 @@ export default defineNuxtModule({
#### Adding Type Declarations #### 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 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: If your module should augment types handled by Nuxt, you can use `addTypeTemplate` to perform this operation: