fix: incorrect types now fixed

This commit is contained in:
2025-11-19 22:03:35 +01:00
parent 3c3e1b67fd
commit 355653e4f2
3 changed files with 20 additions and 14 deletions

View File

@@ -47,8 +47,8 @@ export const useDataJson = (prefix: string) => {
return data as Ref<T | null>;
};
const getJsonData = async (collectionPrefix: string = 'content_data_') => {
return getData(collectionPrefix, { useFilter: true, extractMeta: true });
const getJsonData = async <T = unknown>(collectionPrefix: string = 'content_data_') => {
return getData<T>(collectionPrefix, { useFilter: true, extractMeta: true });
};
const getPageContent = async (collectionPrefix: string = 'content_', fallbackToEnglish: boolean = true) => {