pmcp

superstruct

Use Superstruct ^2.0.0 for runtime validation, coercion, defaults, refinements, and object-shape utilities. Prefer the current named-export API; do not copy older struct.object/User.assert examples.

A skill is written against one major of its package, because a major is where the shape changes. Pick the line that matches your lockfile.

LineForVerified
2.x superstruct@2.0.2 2026-09-08, 4 examples