Handle saving/restoring/checking semantics

Interface

GdprSavior

Export

Hierarchy

  • GdprSavior

Implemented by

Properties

Decorator API: Decorate the restored/created manager and use it

Methods

  • Check if there is an existing manager state (should rely on GdprSavior#exists)

    Returns Promise<void>

  • Determine whether there is already an existing manager (saved state)

    Parameters

    • Optional shouldUpdate: boolean

      Whether it should update its savior internals (should default to true)

    Returns Promise<boolean>

  • Restore the manager (saved state)

    Parameters

    • Optional shouldUpdate: boolean

      Whether it should update its savior internals (should default to true)

    Returns Promise<null | GdprManager>