Skip to content

Commit 052b98a

Browse files
committed
chore: improve internal types
1 parent fa6de58 commit 052b98a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/nuxt/src/core/features.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ interface EnsurePackageInstalledOptions {
1212
prompt?: boolean
1313
}
1414

15-
async function promptToInstall (name: string, installCommand: () => Promise<void>, options: EnsurePackageInstalledOptions) {
15+
async function promptToInstall (name: string, installCommand: () => Promise<unknown>, options: EnsurePackageInstalledOptions) {
1616
for (const parent of options.searchPaths || []) {
1717
if (await resolvePackageJSON(name, { parent }).catch(() => null)) {
1818
return true

packages/schema/src/config/vite.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ export default defineResolvers({
2929
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue'],
3030
},
3131
publicDir: {
32-
// @ts-expect-error this is missing from our `vite` types deliberately, so users do not configure it
3332
$resolve: (val) => {
3433
if (val) {
3534
consola.warn('Directly configuring the `vite.publicDir` option is not supported. Instead, set `dir.public`. You can read more in `https://nuxt.com/docs/api/nuxt-config#public`.')
3635
}
37-
return false
36+
// this is missing from our `vite` types deliberately, so users do not configure it
37+
return false as never
3838
},
3939
},
4040
vue: {

0 commit comments

Comments
 (0)