@logixjs/core
    Preparing search index...

    Function from

    • StateTrait.from:

      • Narrows available field paths based on the state Schema, adding type constraints to trait specs.
      • At runtime this returns the raw spec object; normalization is handled by internal layers.

      Type Parameters

      • S extends object
      • I

      Parameters

      • _schema: Schema<S, I>

      Returns (spec: StateTraitSpec<S>) => StateTraitSpec<S>