Skip to content

Commit 1cc6d5d

Browse files
committed
docs: remove outdated TypeScript warning for older Nuxt versions
The warning regarding TypeScript errors when using the vuetify:registerModule hook with Nuxt versions prior to 3.8.1 is no longer necessary, likely because the minimum supported Nuxt version has been updated.
1 parent 1b12c3e commit 1cc6d5d

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

docs/guide/advanced/layers-and-hooks.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ outline: deep
66

77
You can load your Vuetify configuration using [Nuxt Layers](https://nuxt.com/docs/getting-started/layers#layers) or using a custom module via `vuetify:registerModule` [Nuxt Module Hook](https://nuxt.com/docs/guide/going-further/hooks#nuxt-hooks-build-time).
88

9-
::: warning
10-
If you're **NOT** using Nuxt `^3.8.1+`, you should use `// @ts-expect-error` when using the `vuetify:registerModule` nuxt module hook, TypeScript will complain.
11-
:::
12-
139
## Nuxt Layers
1410

1511
Follow the [installation instructions](/guide/) for `vuetify-nuxt-module` in your layer. Then extend that layer in your other project:
@@ -46,7 +42,6 @@ and your module will load your configuration via `vuetify:registerModule` Nuxt h
4642
```ts [modules/my-vuetify-module.ts]
4743
export default defineNuxtModule({
4844
setup(_options, nuxt) {
49-
// If you're using Nuxt < 3.8.1, you should add a ts-expect-error here
5045
nuxt.hook('vuetify:registerModule', register => register({
5146
moduleOptions: {
5247
/* module specific options */

0 commit comments

Comments
 (0)