langchain.js
    Preparing search index...

    Type Alias InferStateSchemaValue<TFields>

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

    Infer the State type from a StateSchemaFields. This is the type of the full state object.

    • ReducedValue<Value, Input> → Value (the stored type)
    • UntrackedValue → Value
    • SerializableSchema<Input, Output> → Output (the validated type)

    Type Parameters