preload-next
Version:
A Preload Link Component for Next.js to handle seamless page transitions
16 lines • 544 B
TypeScript
/// <reference types="node" />
import { PrefetchOptions } from "next/dist/shared/lib/router/router";
import { SingletonRouter } from "next/router";
import { ParsedUrlQuery } from "querystring";
type hrefToRouteReturn = {
route: string;
query: ParsedUrlQuery;
};
export declare const hrefToRoute: ({ url, asPath, options, singletonRouter, }: {
url: string;
asPath: string;
options: PrefetchOptions;
singletonRouter: SingletonRouter;
}) => Promise<hrefToRouteReturn>;
export {};
//# sourceMappingURL=href-to-route.d.ts.map