Skip to content

Commit 932a80d

Browse files
committed
refactor(schema): deprecate extend, extendConfig, and configResolved hooks
1 parent e32771b commit 932a80d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/schema/src/types/hooks.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,13 +354,15 @@ export interface NuxtHooks {
354354
* @param viteInlineConfig The vite inline config object
355355
* @param env Server or client
356356
* @returns Promise
357+
* @deprecated
357358
*/
358-
'vite:extendConfig': (viteInlineConfig: ViteConfig, env: { isClient: boolean, isServer: boolean }) => HookResult
359+
'vite:extendConfig': (viteInlineConfig: Readonly<ViteConfig>, env: { isClient: boolean, isServer: boolean }) => HookResult
359360
/**
360361
* Allows to read the resolved Vite config.
361362
* @param viteInlineConfig The vite inline config object
362363
* @param env Server or client
363364
* @returns Promise
365+
* @deprecated
364366
*/
365367
'vite:configResolved': (viteInlineConfig: Readonly<ViteConfig>, env: { isClient: boolean, isServer: boolean }) => HookResult
366368
/**

0 commit comments

Comments
 (0)