Here is the code:
let curRecord = await record.load.promise({
type: recordObj.recordType,
id: recordObj.recordId,
isDynamic: true
});
recordObj.recordType = 'record.Type.WORK_ORDER',
gives error: "type":"error.SuiteScriptError","name":"INVALID_RCRD_TYPE","message":"The record type [RECORD.TYPE.WORK_ORDER] is invalid."
The docs say 'record.Type.WORK_ORDER' is a valid enum