Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "frontend-packages/headless-content-unblocker/src/checker/decideToUnblock"

Index

Type aliases

Functions

Type aliases

BlockerCheckerCallback

BlockerCheckerCallback<ExtendedBlockerDefinition>: (by: string, requiredIds: number[], blockerId: number) => { blocker: ExtendedBlockerDefinition; consent: boolean }

Type parameters

Type declaration

    • (by: string, requiredIds: number[], blockerId: number): { blocker: ExtendedBlockerDefinition; consent: boolean }
    • Parameters

      • by: string
      • requiredIds: number[]
      • blockerId: number

      Returns { blocker: ExtendedBlockerDefinition; consent: boolean }

      • blocker: ExtendedBlockerDefinition
      • consent: boolean

Functions

decideToUnblock

  • decideToUnblock<ExtendedBlockerDefinition>(by: string, requiredIds: string | number[], blockerId: number, checker: BlockerCheckerCallback<ExtendedBlockerDefinition>): { blocker: ExtendedBlockerDefinition; consent: boolean }
  • Given by criteria, IDs and content blocker ID decide if the consent is given.

    Type parameters

    Parameters

    • by: string
    • requiredIds: string | number[]
    • blockerId: number
    • checker: BlockerCheckerCallback<ExtendedBlockerDefinition>

    Returns { blocker: ExtendedBlockerDefinition; consent: boolean }

    • blocker: ExtendedBlockerDefinition
    • consent: boolean

Generated using TypeDoc