InferMiddlewareStatesFromArray: IsAny<
T
> extends true __type : T extends undefined | null __type Helper type to extract and merge states from an array of middleware. Recursively processes each middleware and intersects their state types.
Handles both readonly and mutable arrays/tuples explicitly.
type States = InferMiddlewareStatesFromArray<typeof middlewareArray>;
// Returns intersection of all middleware state types