ES6 Tipos de retorno de JavaScript

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