Wocart

@wocart/theme v4.1.0


@wocart/theme / index / ThemeValidationOptions

Interface: ThemeValidationOptions

Optional inputs to validateThemeDefinition. Every field is additive: with no options, the validator behaves exactly as it always has.

contentKeys is the one cross-boundary check the Theme SDK can make and a theme cannot — it defines contentKey and reads the resolved content record, so a typo is invisible everywhere else. The SDK deliberately does not model content packs; it only compares a field's contentKey against the key set the theme supplies. Passing an empty array is meaningful: it enables the check and reports every declared key.

Properties

contentKeys?

optional contentKeys?: readonly string[]