Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

refactor(nuxt)!: rename autoImports to imports #6864

Merged
merged 12 commits into from
Aug 23, 2022
Prev Previous commit
Next Next commit
mark old hooks as deprecated
  • Loading branch information
pi0 committed Aug 23, 2022
commit 8f6d0a702e3b5d2fcf2cc33a408dfc8460815eb7
7 changes: 7 additions & 0 deletions packages/schema/src/types/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,13 @@ export interface NuxtHooks {
'imports:extend': (imports: Import[]) => HookResult
'imports:dirs': (dirs: string[]) => HookResult

/** @deprecated Please use `imports:sources` hook */
'autoImports:sources': (presets: ImportPresetWithDeprecation[]) => HookResult
/** @deprecated Please use `imports:extend` hook */
'autoImports:extend': (imports: Import[]) => HookResult
/** @deprecated Please use `imports:dirs` hook */
'autoImports:dirs': (dirs: string[]) => HookResult

// Components
'components:dirs': (dirs: ComponentsOptions['dirs']) => HookResult
'components:extend': (components: Component[]) => HookResult
Expand Down