Skip to content

Rule.io SDK


Rule.io SDK / rcml/src / AttrsFor

Type Alias: AttrsFor<T>

AttrsFor<T> = { -readonly [K in keyof SpecAttrs<T>]?: SpecAttrs<T>[K] extends { validator: infer V } ? V extends RcmlAttributeValidatorsEnum ? AttrValueOf<V> : never : never }

Defined in: rcml/src/email/rcml-types.ts:56

The per-tag attribute map for factory options. Every attribute is optional — the schema has no required marker; cross-attr invariants are the caller's responsibility.

Type Parameters

T

T extends RcmlTagName