Discriminator predicates over BlendingMode. Centralising the
mode === 'foo' literal comparisons here keeps the modes string-typed
(zero runtime cost) while making intent explicit at call sites and
giving us one place to change if the mode enum ever gets reshaped.
Discriminator predicates over
BlendingMode. Centralising themode === 'foo'literal comparisons here keeps the modes string-typed (zero runtime cost) while making intent explicit at call sites and giving us one place to change if the mode enum ever gets reshaped.