i should not have to write this (but i do) [typescript]
for (
const nodeType of /** @type {(typeof NODE_TYPE.SECTION|typeof NODE_TYPE.HEADING|typeof NODE_TYPE.BLOCK)[]} */(
[
NODE_TYPE.SECTION,
NODE_TYPE.HEADING,
NODE_TYPE.BLOCK,
]
)
) { /* … */ }