chore: add internal types for nitro/app (#19745)

This commit is contained in:
Daniel Roe 2023-03-16 16:27:10 +00:00 committed by GitHub
parent 7103670acc
commit 3e58f90914
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -7,10 +7,11 @@ import devalue from '@nuxt/devalue'
import destr from 'destr'
import { joinURL } from 'ufo'
import { renderToString as _renderToString } from 'vue/server-renderer'
import { useRuntimeConfig, defineRenderHandler, getRouteRules } from '#internal/nitro'
import { hash } from 'ohash'
// @ts-ignore
import { useRuntimeConfig, defineRenderHandler, getRouteRules } from '#internal/nitro'
import { useNitroApp } from '#internal/nitro/app'
// eslint-disable-next-line import/no-restricted-paths
import type { NuxtApp, NuxtSSRContext } from '#app/nuxt'
// @ts-ignore

View File

@ -1,5 +1,6 @@
{
"compilerOptions": {
"forceConsistentCasingInFileNames": true,
"esModuleInterop": false,
"allowSyntheticDefaultImports": true,
"skipLibCheck": true,
@ -25,6 +26,9 @@
"#internal/nitro": [
"./node_modules/nitropack/dist/runtime"
],
"#internal/nitro/app": [
"./node_modules/nitropack/dist/runtime/app"
],
"#internal/nitro/utils": [
"./node_modules/nitropack/dist/runtime/utils"
]