Options
All
  • Public
  • Public/Protected
  • All
Menu

StoreModel is a thin wrapper of Immutable data around for a Class uses the internal immutable map to hold all values. This allows us a base class on which we can extend and inject into any Redux store as we follow Immutability

Also ships with a helper static method to create unique IDs

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

  • Parameters

    • Default value data: any = {}

    Returns StoreModel

Properties

_data

_data: Map<string, any>

Methods

getData

  • getData(): Map<string, any>
  • Returns Map<string, any>

getKey

  • getKey(key: string): any
  • Parameters

    • key: string

    Returns any

listPush

  • listPush<T>(ClassName: any, i_key: string, i_value: string): any
  • Create a List or update a list if one exists, with the Map key provided and the value to push to the new/updated list

    Type parameters

    • T

    Parameters

    • ClassName: any
    • i_key: string
    • i_value: string

    Returns any

setData

  • setData<T>(ClassName: any, data: any): T
  • Type parameters

    • T

    Parameters

    • ClassName: any
    • data: any

    Returns T

setKey

  • setKey<T>(ClassName: any, key: string, value: any): T
  • Type parameters

    • T

    Parameters

    • ClassName: any
    • key: string
    • value: any

    Returns T

Static UniqueId

  • UniqueId(): unknown
  • Returns unknown

Generated using TypeDoc