Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

  • new LocalStorage(source: string, __namedParameters?: { defaultValue: any; deserialize: any; serialize: any }): LocalStorage
  • Parameters

    • source: string
    • __namedParameters: { defaultValue: any; deserialize: any; serialize: any } = ...
      • deserialize: function
        • deserialize(text: string, reviver?: (key: string, value: any) => any): any
        • Converts a JavaScript Object Notation (JSON) string into an object.

          Parameters

          • text: string

            A valid JSON string.

          • Optional reviver: (key: string, value: any) => any

            A function that transforms the results. This function is called for each member of the object. If a member contains nested objects, the nested objects are transformed before the parent object is.

              • (key: string, value: any): any
              • Parameters

                • key: string
                • value: any

                Returns any

          Returns any

      • serialize: function
        • serialize(obj: any, space?: number): string

    Returns LocalStorage

Properties

Protected Readonly defaultValue

defaultValue: any

Protected Readonly deserialize

deserialize: any

Protected Readonly serialize

serialize: any

Protected Readonly source

source: string

Methods

read

  • read(): string

write

  • write(data: any): void