real-enums
    Preparing search index...

    Function enumTransformations

    • One WarpDrive Transformation for each enum in the map, for the store's transformations: enumTransformations({ 'order-state': OrderState }), then type: 'order-state' on a field.

      Schema options must stay JSON, so a field cannot carry the class itself; the map names it.

      Parameters

      Returns Transformation<string | string[] | null, Hydrated<Enum> | Hydrated<Enum>[]>[]