Returns a path with params interpolated.
import { generatePath } from "react-router";
generatePath("/users/:id", { id: "123" }); // "/users/123"
function generatePath<Path extends string>(
  originalPath: Path,
  params: {
    [key in PathParam<Path>]: string | null;
  } =  as any,
): string {}
The original path to generate.
The parameters to interpolate into the path.
The generated path with parameters interpolated.