Just wanted to understand correct approach using async/await when we return the value in async functions. what would be correct way to write code for async functions and return the value with promise ?
main.ts
private async customerResponse(data: any): Promise < any > {
const custObject: any = data;
Promise.resolve(custObject);
Or
return custObject;
}