Data structure with ids

Tried to move this to a plugin that only runs on transform events with step.type split, but the id change step still isn’t getting applied to the DOM (context):

transform.setNodeType(new Pos([i.pos], 0), child.type, {id})

Is this the right way to use setNodeType? Pos? Should adding the step to the transform like this make it get applied when the split does?