NS Tools/Framework - v0.0.1
    Preparing search index...
    alias: <T extends NetsuiteCurrentRecord>(
        fieldId: string,
    ) => (target: T, propertyKey: string) => void = AliasDescriptor

    Netsuite helper field types

    Type Declaration

      • <T extends NetsuiteCurrentRecord>(
            fieldId: string,
        ): (target: T, propertyKey: string) => void
      • 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';

        Type Parameters

        Parameters

        • fieldId: string

        Returns (target: T, propertyKey: string) => void

        any