diff --git a/src/module/type-templates.ts b/src/module/type-templates.ts index 29de1d11..122f3fef 100644 --- a/src/module/type-templates.ts +++ b/src/module/type-templates.ts @@ -248,6 +248,7 @@ declare module 'nuxt/dist/app/composables/fetch' { PickKeys extends import('nuxt/dist/app/composables/asyncData').KeysOf = import('nuxt/dist/app/composables/asyncData').KeysOf, DefaultT = DataT, >(request: import('vue').Ref | Path | (() => Path), opts?: import('nuxt/dist/app/composables/fetch').UseFetchOptions<_ResT, DataT, PickKeys, DefaultT, Path, Method>): import('nuxt/dist/app/composables/asyncData').AsyncData | DefaultT, ErrorT | undefined> + export function useFetch(request: string | import('vue').Ref | (() => string), opts?: any): any export function useLazyFetch< ErrorT = FetchError, @@ -267,6 +268,7 @@ declare module 'nuxt/dist/app/composables/fetch' { PickKeys extends import('nuxt/dist/app/composables/asyncData').KeysOf = import('nuxt/dist/app/composables/asyncData').KeysOf, DefaultT = DataT, >(request: import('vue').Ref | Path | (() => Path), opts?: Omit, 'lazy'>): import('nuxt/dist/app/composables/asyncData').AsyncData | DefaultT, ErrorT | undefined> + export function useLazyFetch(request: string | import('vue').Ref | (() => string), opts?: any): any } declare module 'nuxt/app' { @@ -288,6 +290,7 @@ declare module 'nuxt/app' { PickKeys extends import('nuxt/dist/app/composables/asyncData').KeysOf = import('nuxt/dist/app/composables/asyncData').KeysOf, DefaultT = DataT, >(request: import('vue').Ref | Path | (() => Path), opts?: import('nuxt/dist/app/composables/fetch').UseFetchOptions<_ResT, DataT, PickKeys, DefaultT, Path, Method>): import('nuxt/dist/app/composables/asyncData').AsyncData | DefaultT, ErrorT | undefined> + export function useFetch(request: string | import('vue').Ref | (() => string), opts?: any): any export function useLazyFetch< ErrorT = FetchError, @@ -307,6 +310,7 @@ declare module 'nuxt/app' { PickKeys extends import('nuxt/dist/app/composables/asyncData').KeysOf = import('nuxt/dist/app/composables/asyncData').KeysOf, DefaultT = DataT, >(request: import('vue').Ref | Path | (() => Path), opts?: Omit, 'lazy'>): import('nuxt/dist/app/composables/asyncData').AsyncData | DefaultT, ErrorT | undefined> + export function useLazyFetch(request: string | import('vue').Ref | (() => string), opts?: any): any } declare module 'nitropack' { diff --git a/test/cases/layer-server-auth-typecheck-base/nuxt.config.ts b/test/cases/layer-server-auth-typecheck-base/nuxt.config.ts index 081c45ee..4bf4b244 100644 --- a/test/cases/layer-server-auth-typecheck-base/nuxt.config.ts +++ b/test/cases/layer-server-auth-typecheck-base/nuxt.config.ts @@ -1,6 +1,4 @@ -import { defineNuxtConfig } from 'nuxt/config' - -export default defineNuxtConfig({ +export default { modules: ['@nuxthub/core', '@onmax/nuxt-better-auth'], hub: { db: 'sqlite' }, @@ -8,4 +6,4 @@ export default defineNuxtConfig({ runtimeConfig: { betterAuthSecret: 'test-secret-for-testing-only-32chars!', }, -}) +} diff --git a/test/cases/layer-server-auth-typecheck/nuxt.config.ts b/test/cases/layer-server-auth-typecheck/nuxt.config.ts index d5d0464d..8a42ccc0 100644 --- a/test/cases/layer-server-auth-typecheck/nuxt.config.ts +++ b/test/cases/layer-server-auth-typecheck/nuxt.config.ts @@ -1,5 +1,3 @@ -import { defineNuxtConfig } from 'nuxt/config' - -export default defineNuxtConfig({ +export default { extends: ['../layer-server-auth-typecheck-base'], -}) +} diff --git a/test/cases/nitro-endpoints-type-inference/tsconfig.type-check.json b/test/cases/nitro-endpoints-type-inference/tsconfig.type-check.json index 6c4bd98e..1037f552 100644 --- a/test/cases/nitro-endpoints-type-inference/tsconfig.type-check.json +++ b/test/cases/nitro-endpoints-type-inference/tsconfig.type-check.json @@ -5,7 +5,6 @@ "ESNext", "DOM" ], - "baseUrl": ".", "module": "preserve", "moduleResolution": "bundler", "paths": { diff --git a/test/cases/plugins-type-inference/tsconfig.type-check.json b/test/cases/plugins-type-inference/tsconfig.type-check.json index d313d6fe..e098179a 100644 --- a/test/cases/plugins-type-inference/tsconfig.type-check.json +++ b/test/cases/plugins-type-inference/tsconfig.type-check.json @@ -5,7 +5,6 @@ "ESNext", "DOM" ], - "baseUrl": ".", "module": "preserve", "moduleResolution": "bundler", "paths": { diff --git a/test/cases/server-auth-alias-typecheck/nuxt.config.ts b/test/cases/server-auth-alias-typecheck/nuxt.config.ts index 50367695..4bf4b244 100644 --- a/test/cases/server-auth-alias-typecheck/nuxt.config.ts +++ b/test/cases/server-auth-alias-typecheck/nuxt.config.ts @@ -1,4 +1,4 @@ -export default defineNuxtConfig({ +export default { modules: ['@nuxthub/core', '@onmax/nuxt-better-auth'], hub: { db: 'sqlite' }, @@ -6,4 +6,4 @@ export default defineNuxtConfig({ runtimeConfig: { betterAuthSecret: 'test-secret-for-testing-only-32chars!', }, -}) +} diff --git a/test/cases/signin-provider-alias-type-inference/tsconfig.type-check.json b/test/cases/signin-provider-alias-type-inference/tsconfig.type-check.json index 056fe459..37f00745 100644 --- a/test/cases/signin-provider-alias-type-inference/tsconfig.type-check.json +++ b/test/cases/signin-provider-alias-type-inference/tsconfig.type-check.json @@ -5,7 +5,6 @@ "ESNext", "DOM" ], - "baseUrl": ".", "module": "preserve", "moduleResolution": "bundler", "paths": { diff --git a/test/cases/use-fetch-endpoints-type-inference/tsconfig.type-check.json b/test/cases/use-fetch-endpoints-type-inference/tsconfig.type-check.json index fb0bcc0d..3f242ba2 100644 --- a/test/cases/use-fetch-endpoints-type-inference/tsconfig.type-check.json +++ b/test/cases/use-fetch-endpoints-type-inference/tsconfig.type-check.json @@ -5,7 +5,6 @@ "ESNext", "DOM" ], - "baseUrl": ".", "module": "preserve", "moduleResolution": "bundler", "paths": {