mobx-bonsai
    Preparing search index...

    Function dateToTimestampTransform

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

      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, date: ImmutableDate | Date | Extract<T[K], undefined | null>) => void

      A function that sets the Date argument into the timestamp property