I wrote this function but it throws an error and I don\'t understand why...
const createObject = async (): Promise => { await Promise.resol