diff --git a/src/components/TableComp.vue b/src/components/TableComp.vue index adea9e8..9f61568 100644 --- a/src/components/TableComp.vue +++ b/src/components/TableComp.vue @@ -46,11 +46,11 @@ const searchWhat = ref(searchStore.searchParams.query) const query={...searchStore.searchParams} -const keys_of_a_data=ref() +const keys_of_a_data=ref() -const arr_col_items=ref([]) +const arr_col_items=ref([]) -const row_values = ref([]) +const row_values = ref([]) const router = useRouter(); const goToSearchPage=()=>{ router.push ("/") @@ -83,7 +83,7 @@ onMounted(()=>{ response.data.map(item=>{ - const values=[] + const values:any[]=[] Object.keys(item).forEach(key=>{ console.log("key12: ", key) diff --git a/src/utils/api.ts b/src/utils/api.ts index c2397fc..4f418aa 100644 --- a/src/utils/api.ts +++ b/src/utils/api.ts @@ -1,7 +1,7 @@ -export const fetchData = async(endpoints="", requestType="GET", requestBody=null)=>{ +export const fetchData = async(endpoints="", requestType="GET", requestBody:Record|null =null)=>{ try{ - const options={ + const options:RequestInit={ method:requestType, headers:{ "Content-Type":"application/json", diff --git a/tsconfig.app.json b/tsconfig.app.json index 913b8f2..2eb49f3 100644 --- a/tsconfig.app.json +++ b/tsconfig.app.json @@ -4,7 +4,7 @@ "exclude": ["src/**/__tests__/*"], "compilerOptions": { "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo", - + "noImplicitAny": false, "paths": { "@/*": ["./src/*"] } diff --git a/tsconfig.json b/tsconfig.json index 100cf6a..0e12ade 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,5 +10,8 @@ { "path": "./tsconfig.vitest.json" } - ] + ], + "compilerOptions": { + "noImplicitAny": false + } }