As stated in the title。
require('photoshop').app.activeDocument.layers.forEach((layer) => {
console.log(layer)
if (layer.kind === LayerKind.TEXT) {
console.log('文本图层')
}
})
But an error is reported
Uncaught ReferenceError: LayerKind is not defined
What did I miss?
Thank you~