Documentation
    Preparing search index...

    Function browserStorage

    • Returns a wrapper for the browser's getter and setter functions of the given storage type.

      Parameters

      • type: "local" | "session"

      Returns {
          getItem: (key: string) => string | null;
          removeItem: (key: string) => boolean;
          setItem: (key: string, value: string) => boolean;
      }

      • getItem: (key: string) => string | null
      • removeItem: (key: string) => boolean
      • setItem: (key: string, value: string) => boolean