### What version of React Router are you using? 6.4.2 ### Steps to Reproduce - Use a `Partial<Location>` object in `initialEntries` when creating a memory router: ```tsx import { createMemoryRouter } from 'react-router-dom'; const router = createMemoryRouter([], { initialEntries: [{ pathname: '/foo', state: { myState: 'bar' } }], }); ``` ### Expected Behavior The code type-checks and works as normal, where the state is accessible in the components with `useLocation`. ### Actual Behavior The code does not type-check but works as normal, where the state is accessible in the components with `useLocation`. The type error is: ``` TS2322: Type '{ pathname: string; state: { myState: string; }; }' is not assignable to type 'string'. ``` This seems to be because [initialEntries](https://github.com/remix-run/react-router/blob/5f3cfb7ac2ad823ecdf69069332567e35ad795c6/packages/react-router/index.ts#L206) of [createMemoryRouter](https://github.com/remix-run/react-router/blob/5f3cfb7ac2ad823ecdf69069332567e35ad795c6/packages/react-router/index.ts#L201) is typed as `string[]` rather than `InitialEntry[]` which is what [createMemoryHistory](https://github.com/remix-run/react-router/blob/5f3cfb7ac2ad823ecdf69069332567e35ad795c6/packages/router/history.ts#L205) uses and `initialEntries` is passed on to.