Helper field descriptor to create an alias property that maps to another field id
Example usage
class Customer extends CustomerBase {
@FieldType.freeformtext
custentity1: string;
// Field alias to access custentity1 via a friendlier more descriptive name
@FieldType.alias('custentity1') my_descriptive_name: string;
}
const customer = new Customer(123);
// set via alias, will update the Netsuite underlying field custentity1
customer.my_descriptive_name = 'Hello World';
Helper field descriptor to create an alias property that maps to another field id Example usage
class Customer extends CustomerBase { @FieldType.freeformtext custentity1: string; // Field alias to access custentity1 via a friendlier more descriptive name @FieldType.alias('custentity1') my_descriptive_name: string; }
const customer = new Customer(123); // set via alias, will update the Netsuite underlying field custentity1 customer.my_descriptive_name = 'Hello World';