An error has been highlighted in the code snippet below:
Cannot find name TEntity
createEntity<TEntity>() : Promise<TEntity> {
let type = typeof(TEntity);
}
What is the correct way to use the TEntity
parameter within this function?