real-enums
    Preparing search index...

    Function mapFields

    • Returns a copy of data with every mapped field turned into its enum instance. Missing paths and nulls are left alone; unknown values become undefined, as with valueFor. Mapping data that is already mapped is a no-op, so it is safe to run on every read.

      shortcut: the result type is whatever the caller names (mapFields<Order>(...)), not derived from the map; upgrade to a path-level mapped type if callers start getting it wrong.

      Type Parameters

      • T = unknown

      Parameters

      Returns T