Skip to content

Commit f271c66

Browse files
committed
chore: improve internal types
1 parent 610b01f commit f271c66

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
@@ -36,12 +36,12 @@ export default defineResolvers({
3636
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue'],
3737
},
3838
publicDir: {
39-
// @ts-expect-error this is missing from our `vite` types deliberately, so users do not configure it
4039
$resolve: (val) => {
4140
if (val) {
4241
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`.')
4342
}
44-
return false
43+
// this is missing from our `vite` types deliberately, so users do not configure it
44+
return false as never
4545
},
4646
},
4747
vue: {

0 commit comments

Comments
 (0)