langchain.js
    Preparing search index...

    Type Alias InferStateSchemaUpdate<TFields>

    InferStateSchemaUpdate: {
        [K in keyof TFields]?: TFields[K] extends ReducedValue<any, any>
            ? TFields[K]["InputType"]
            : TFields[K] extends UntrackedValue<any>
                ? TFields[K]["ValueType"]
                : TFields[K] extends SerializableSchema<infer TInput, any>
                    ? TInput
                    : never
    }

    Infer the Update type from a StateSchemaFields. This is the type for partial updates to state.

    • ReducedValue<Value, Input> → Input (the reducer input type)
    • UntrackedValue → Value
    • SerializableSchema<Input, Output> → Input (what you provide)

    Type Parameters