From ee4ea3ad99721a53a8b79d412a933d18abd44716 Mon Sep 17 00:00:00 2001 From: Farnabaz Date: Wed, 4 Oct 2023 13:15:53 +0200 Subject: [PATCH] fix: types import --- src/module.ts | 2 +- src/runtime/query/match/utils.ts | 2 +- src/runtime/query/query.ts | 5 ++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/module.ts b/src/module.ts index 9a2ba606e..8128c159f 100644 --- a/src/module.ts +++ b/src/module.ts @@ -692,7 +692,7 @@ export default defineNuxtModule({ }) // Context will use in server - nuxt.options.runtimeConfig.content = defu(nuxt.options.runtimeConfig.content, { + nuxt.options.runtimeConfig.content = defu(nuxt.options.runtimeConfig.content as any, { cacheVersion: CACHE_VERSION, cacheIntegrity, ...contentContext as any diff --git a/src/runtime/query/match/utils.ts b/src/runtime/query/match/utils.ts index 1c1f97bea..de728dc07 100644 --- a/src/runtime/query/match/utils.ts +++ b/src/runtime/query/match/utils.ts @@ -1,4 +1,4 @@ -import { SortOptions } from '../../types' +import type { SortOptions } from '../../types' /** * Retrive nested value from object by path diff --git a/src/runtime/query/query.ts b/src/runtime/query/query.ts index c4e4cd80f..759d81796 100644 --- a/src/runtime/query/query.ts +++ b/src/runtime/query/query.ts @@ -1,6 +1,5 @@ -import type { QueryBuilder, SortOptions } from '../types' -import { ParsedContent } from '../types' -import { ContentQueryBuilder, ContentQueryBuilderParams, ContentQueryFetcher } from '../types/query' +import type { QueryBuilder, SortOptions, ParsedContent } from '../types' +import type { ContentQueryBuilder, ContentQueryBuilderParams, ContentQueryFetcher } from '../types/query' import { ensureArray } from './match/utils' const arrayParams = ['sort', 'where', 'only', 'without']