mobx-bonsai
    Preparing search index...

    Function timestampToDateTransform

    • Transforms a timestamp number to a Date (getter).

      Type Parameters

      • T extends { [k in string | number | symbol]?: null | number }
      • K extends string | number | symbol

      Parameters

      • propName: K

        The name of the property to transform

      Returns (this: T) => ImmutableDate | Extract<T[K], undefined | null>

      A function that transforms the timestamp property into a Date