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

View File

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