Skip to content

Commit c8d20f5

Browse files
committed
fix: type nitro hook (nuxt-modules#391)
1 parent 2f37974 commit c8d20f5

File tree

7 files changed

+1188
-1970
lines changed

7 files changed

+1188
-1970
lines changed

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"test": "pnpm vitest run"
3737
},
3838
"dependencies": {
39-
"@nuxt/kit": "^3.5.1",
39+
"@nuxt/kit": "^3.6.1",
4040
"chalk": "^5.1.2",
4141
"html-validate": "~7.18.0",
4242
"pathe": "^1.0.0",
@@ -45,15 +45,15 @@
4545
},
4646
"devDependencies": {
4747
"@nuxt/module-builder": "0.4.0",
48-
"@nuxt/test-utils": "3.5.3",
48+
"@nuxt/test-utils": "3.6.1",
4949
"@nuxtjs/eslint-config-typescript": "12.0.0",
5050
"bumpp": "9.1.1",
5151
"c8": "7.14.0",
5252
"eslint": "8.43.0",
5353
"eslint-config-prettier": "8.8.0",
5454
"husky": "8.0.3",
5555
"lint-staged": "13.2.3",
56-
"nuxt": "3.5.3",
56+
"nuxt": "3.6.1",
5757
"vitest": "0.32.2"
5858
},
5959
"resolutions": {

playground/server/plugins/html.ts

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export default defineNitroPlugin((nitro) => {
2+
nitro.hooks.hook('html-validator:check', () => {
3+
4+
})
5+
})

0 commit comments

Comments
 (0)