• Type guard narrowing a SohlItem to one of the item kinds that carries a subType field, optionally requiring a specific sub-type value.

    Parameters

    • item: SohlItem

      The item to test.

    • OptionalsubType: string

      When given, the item's system.subType must equal this value.

    Returns item is SohlItem & { system: { subType: string } }

    true if item carries a subType field (and matches subType when supplied).