• Narrowing type guard: is x of the type keyed by key? Pass a BrandType key — a base-type name ("SohlLogic") or a kind value (ITEM_KIND.SKILL / ACTOR_KIND.BEING, which narrow because defineType preserves literals). Base types are matched by their BRAND Symbol; item/actor kinds by the logic's .kind discriminant.

    Type Parameters

    Parameters

    • x: unknown

      The value to test.

    • key: K

      The brand/kind key (a BrandType key).

    Returns x is BrandType[K]

    Whether x matches key, narrowing x to BrandType[key].