@playlive/realtime-pipeline
    Preparing search index...

    Function protectTeamCampaignAmounts

    • Same monotonic-amount guarantee as protectCampaignAmounts, but for TiltifyTeamCampaign arrays. The amount fields live on the shared TiltifyBaseCampaign ancestor but the two are distinct TS types so a dedicated overload is required.

      Parameters

      • incoming: TiltifyTeamCampaign[]

        Fresh batch from the server.

      • existing: TiltifyTeamCampaign[]

        Currently-known team campaigns.

      Returns TiltifyTeamCampaign[]

      Merged array with monotonically non-decreasing amounts.