Ah sorry, not at PC now so can’t test. It should probably be an object:
const filetypeOptionsArray = {
"tiff": { type: "tiff", extension: "TIFF", bitdepth: "16" },
"psd": { type: "psd", extension: "PSD", bitdepth: "16" },
"jpg": { type: "jpg", extension: "JPG", bitdepth: "8" },
}
My bad. If there are errors, always check which line produces it and most of the time it’s quite easy to figure out