Handles the central data store's IPC functions

Hierarchy

  • CentralStore

Methods

  • Clears the central

    Returns Promise<undefined>

    A promise which resolves when complete

  • Copy of the central data store map

    Returns Promise<Map<string, any>>

    A promise with the central data store map. Note that modifying this map will not modify the central data store.

  • Deletes a key from the central data store

    Parameters

    • key: string

      The key to delete

    Returns Promise<boolean>

    Promise which resolves a success boolean

  • Gets a value from the central data store

    Parameters

    • key: string

      The key to get

    Returns Promise<any>

    Promise which resolves with the value

  • Check whether a key exists in the central data store

    Parameters

    • key: string

      Key to check

    Returns Promise<boolean>

    Promise which resolves with a boolean

  • Assign a value to the central data store

    Parameters

    • key: string

      Unique key to assign this value

    • value: unknown

      The value

    Returns Promise<void>

    Promise which resolves when complete

Generated using TypeDoc