Within a custom element in my Slate.js editor, I have this logic for updating the properties of the element:
const chan