| Owner | anonymous |
|---|---|
| Created At | |
| Expires At | |
| Visibility | public |
| Direct Link | https://paste.velinsky.xyz/~/019a2092-c219-74d1-826a-78e93f76efb9 |
| Paste Link | https://paste.velinsky.xyz/@/anonymous/uS4SotlcVJ |
No attachments were uploaded.
export function defineNuxtPlugin<T extends Record<string, unknown>> (plugin: Plugin<T> | ObjectPlugin<T>): Plugin<T> & ObjectPlugin<T>
type Plugin<T> = (nuxt: NuxtApp) => Promise<void> | Promise<{ provide?: T }> | void | { provide?: T }
interface ObjectPlugin<T> {
name?: string
enforce?: 'pre' | 'default' | 'post'
dependsOn?: string[]
order?: number
parallel?: boolean
setup?: Plugin<T>
hooks?: Partial<RuntimeNuxtHooks>
env?: {
islands?: boolean
}
}