Here is the code https://i.sstatic.net/zspmr.png
copy-pasted snippet:
const verifyEntity = async <ObjectClass>(
) => {
if (ObjectUtil.areDifferent(user.client, info, 'typeId')) {
const beforeType = await handler.retrieve(ObjectClass, user.client.typeId);
const afterType = await manager.find(ObjectClass, info.typeId);
}
}
How do I incorporate any type of object into this function? I'm encountering an issue with
'ObjectClass' only refers to a type, but is being used as a value here.