I’ve updated Photoshop types and got an error about suspensionID, so I started checking it and found, that the signature now is:
let suspensionID = await hostControl.suspendHistory({
documentID: documentID,
name: "Custom Command"
})
It used to be:
let suspensionID = await hostControl.suspendHistory({
historyStateInfo: {
name: "Custom Command",
target: [{
_ref: "document",
_id: documentID,
}],
},
})
And of course docs don’t mention a single word about the change
Both versions of the call work as expected, but I’m worried since which lower version the new signature stops working