preload-next
Version:
A Preload Link Component for Next.js to handle seamless page transitions
6 lines • 386 B
TypeScript
import { PrefetchOptions } from "next/dist/shared/lib/router/router";
import { NextRouter, SingletonRouter } from "next/router";
export declare const prefetch: (router: NextRouter, href: string, as: string, extra: any, singletonRouter: SingletonRouter, prefetched: {
[cacheKey: string]: boolean;
}, options?: PrefetchOptions) => Promise<void>;
//# sourceMappingURL=prefetch.d.ts.map