IFClite TypeScript API
    Preparing search index...

    Function modelTagRuleMatches

    • Does a model carrying memberTagIds satisfy op over ruleTagIds?

      definedTagIds is the set of tags that currently EXIST. A rule naming a tag that no longer exists is UNRESOLVED and matches nothing, whatever the op: hasNone [deleted] would otherwise be true of every model — the silent broadening the issue forbids — and hasAny [deleted] false of every model, which happens to be the same answer but for the wrong reason. Callers surface the unresolved ids through unresolvedModelTagIds rather than inferring them from an empty result.

      untagged names no tag and so can never be unresolved.

      Parameters

      • op: ModelTagOp
      • ruleTagIds: readonly string[]
      • memberTagIds: ReadonlySet<string> | undefined
      • definedTagIds: ReadonlySet<string>

      Returns boolean