mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-20 15:41:11 +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`
|
### `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
|
#### Type
|
||||||
|
|
||||||
```ts
|
```ts
|
||||||
async function installModule (moduleToInstall: string | NuxtModule, inlineOptions?: any, nuxt?: Nuxt)
|
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
|
#### Examples
|
||||||
```ts
|
```ts
|
||||||
import { defineNuxtModule, installModule } from '@nuxt/kit'
|
import { defineNuxtModule, installModule } from '@nuxt/kit'
|
||||||
|
Loading…
Reference in New Issue
Block a user