@metreeca/core - v0.9.17
    Preparing search index...

    Type Alias Seed<T>

    Seed: {
        [K in keyof T]: T[K] extends Transition<T, infer I>
            ? Update<T, I>
            : T[K] extends Function ? never : T[K]
    }

    State seed value.

    Maps a state interface to the seed value type required by State factory:

    • Data properties are preserved unchanged
    • Transition methods are mapped to Update functions with inferred parameter types
    • Other function types are excluded

    Type Parameters

    • T

      The state interface type

    The type automatically infers input parameter types from transition signatures, ensuring type safety between transition method parameters and their corresponding update functions.