in a vue3 ‘s code
const jobs = ref([]);
async function getQueueJobs(status: string) {
let result = await request({
url: '/api/v1/jobs',
method: 'get',
headers: { 'Content-Type': 'application/json' },
});
jobs.value = result['data'];
console.log('......', jobs.value);
}
compiling with errors saying
Type ‘unknown’ is not assignable to type ‘any[]’.
tried with
const jobs = ref(any[]);
compiling with errors saying
An element access expression should take an argument.
how to deal with this compiling issue ?