mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 06:05:11 +00:00
fix(nuxt3): correct compoennts hooks parameters types (#1157)
This commit is contained in:
parent
cba4c4202b
commit
185366ec2d
@ -39,14 +39,14 @@ export interface ComponentsDir extends ScanDir {
|
||||
transpile?: 'auto' | boolean
|
||||
}
|
||||
|
||||
type componentsDirHook = (dirs: ComponentsDir[]) => void | Promise<void>
|
||||
type componentsExtendHook = (components: (ComponentsDir | ScanDir)[]) => void | Promise<void>
|
||||
|
||||
export interface Options {
|
||||
dirs: (string | ComponentsDir)[]
|
||||
loader: Boolean
|
||||
}
|
||||
|
||||
type componentsDirHook = (dirs: Options['dirs']) => void | Promise<void>
|
||||
type componentsExtendHook = (components: (Component | ComponentsDir | ScanDir)[]) => void | Promise<void>
|
||||
|
||||
declare module '@nuxt/kit' {
|
||||
interface NuxtOptions {
|
||||
components: boolean | Options | Options['dirs']
|
||||
|
Loading…
Reference in New Issue
Block a user