mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-14 18:13:54 +00:00
chore: reorder definition and type
This commit is contained in:
parent
0c69c19576
commit
00037a9ce0
@ -16,14 +16,14 @@ description: Nuxt Kit provides composable utilities to help interacting with Nux
|
||||
|
||||
### `installModule`
|
||||
|
||||
Install specified Nuxt module programmatically. This is helpful when your module depends on other modules. You can pass the module options as an object to `inlineOptions` and they will be passed to the module's `setup` function.
|
||||
|
||||
#### Type
|
||||
|
||||
```ts
|
||||
async function installModule (moduleToInstall: string | NuxtModule, inlineOptions?: any, nuxt?: Nuxt)
|
||||
```
|
||||
|
||||
Install specified Nuxt module programmatically. This is helpful when your module depends on other modules. You can pass the module options as an object to `inlineOptions` and they will be passed to the module's `setup` function.
|
||||
|
||||
#### Examples
|
||||
```ts
|
||||
import { defineNuxtModule, installModule } from '@nuxt/kit'
|
||||
|
Loading…
Reference in New Issue
Block a user