feat(docs): parameters of installModule

This commit is contained in:
Andrey Yolkin 2023-07-28 18:00:45 +03:00
parent 18bed81f0d
commit 2e87bc8708

View File

@ -24,6 +24,32 @@ Install specified Nuxt module programmatically. This is helpful when your module
async function installModule (moduleToInstall: string | NuxtModule, inlineOptions?: any, nuxt?: Nuxt)
```
#### Parameters
##### `moduleToInstall`
**Type**: `string` | `NuxtModule`
**Required**: `true`
The module to install. Can be either a string with the module name or a module object itself.
##### `inlineOptions`
**Type**: `any`
**Default**: `{}`
An object with the module options to be passed to the module's `setup` function.
##### `nuxt`
**Type**: `Nuxt`
**Default**: `useNuxt()`
Nuxt instance. If not provided, it will be retrieved from the context via `useNuxt()` call.
#### Examples
```ts