Avena Webapp API - v0.0.1
    Preparing search index...

    Function normalizeChannelFilters

    • Cleans one channel's filter settings.

      Switches count as on only when they are exactly true; cutoffs only when they are finite numbers above 0 (numeric strings are accepted). Everything else is dropped.

      Parameters

      • raw: unknown

        Stored value, possibly malformed.

      Returns ChannelFilterSettings | undefined

      The settings with only the active filters, or undefined when none is on.