I get typescript errors when trying to access a customField's fieldValue:
const jobDetails = await jobsApi.getJob(projectId, translationJobUid);
const customField = jobDetails.customFields.find(findMyCustomFieldByFieldUid);
if (customField) {
const value = customField.fieldValue; // TS2339: Property 'fieldValue' does not exist on type 'CustomFieldDto'.
console.log({value});
}
This happens because the CustomFieldDto interface is missing fieldValue.
While you can work around the issue with a @ts-ignore comment, it doesn't help with discoverability.
I get typescript errors when trying to access a customField's fieldValue:
This happens because the CustomFieldDto interface is missing
fieldValue
.While you can work around the issue with a
@ts-ignore
comment, it doesn't help with discoverability.