Enumerator Error Workaround

This can be found by referring to correct places, so we do not have to define it by ourselves.

For example,

const InDesign = require('indesign') ;
console.log(InDesign.MeasurementUnits.PIXELS) ;

or

const InDesign = require('indesign') ;
const { MeasurementUnits } = InDesign ;
console.log(MeasurementUnits.PIXELS) ;

Your kindness is great.

3 Likes