mobx-bonsai
    Preparing search index...

    Function isoStringToDateTransform

    • Transforms an ISO date string to a Date (getter).

      Type Parameters

      • T extends { [k in string | number | symbol]?: null | string }
      • 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 ISO string property into a Date