chore: reorder definition and type

This commit is contained in:
Andrey Yolkin 2023-07-28 17:51:17 +03:00
parent 0c69c19576
commit 00037a9ce0

View File

@ -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'