Hierarchy

Methods

Methods

  • Get config from the state

    Returns

    the config

    Type Parameters

    • T = any

    Parameters

    • key: string

      name of the key containing the config

    Returns T

  • Check if a config exists

    Returns

    true if config exists

    Parameters

    • key: string

      name of the key containing the config

    Returns boolean

  • Subscribe to state changes

    Returns

    unsubscribe callback

    Parameters

    • callback: (() => void)

      function to call when subscription updates

        • (): void
        • Returns void

    • Optional options: StateOptions

      options for the state selector

    Returns (() => void)

      • (): void
      • Subscribe to state changes

        Returns

        unsubscribe callback

        Returns void