tipe pengembalian javascript es6

const testFunc = (param: string): Record<string, unknown> => {
  // this should return an object
}

// if its an async function

const testFunc = async (param: string): Promise<your type> => {
  // this should return your type
}
TP