I have a route with server middleware which returns a context object. When I try to access that context in a child route, it exists and has its field set correctly, but its inferred type is undefined. I discovered this with nested routes, but still happens when I set the middleware on the route directly (see screenshot)
This seems to be Solid-only problem. If I recreate the same structure in React, the type on the context object is correctly inferred. Are there any changes I'd need to make here for Solid compared to React, or is this a typing bug?