@nospamproxy/core
    Preparing search index...

    Abstraction for sessionStorage. Makes testing easier and allows for mocking.

    interface ISessionStorageService {
        getItem(key: string): string | null;
        setItem(key: string, value: string): void;
    }

    Hierarchy (View Summary)

    Index

    Methods

    • Parameters

      • key: string

      Returns string | null

    • Sets a value in session storage.

      Parameters

      • key: string

        The key under which the value is stored.

      • value: string

        The value to store.

      Returns void