create project
This commit is contained in:
21
kitabcitab/node_modules/next/dist/shared/lib/router/adapters.d.ts
generated
vendored
Normal file
21
kitabcitab/node_modules/next/dist/shared/lib/router/adapters.d.ts
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
import React from 'react';
|
||||
import type { AppRouterInstance } from '../app-router-context';
|
||||
import type { NextRouter } from './router';
|
||||
/**
|
||||
* adaptForAppRouterInstance implements the AppRouterInstance with a NextRouter.
|
||||
*
|
||||
* @param router the NextRouter to adapt
|
||||
* @returns an AppRouterInstance
|
||||
*/
|
||||
export declare function adaptForAppRouterInstance(router: NextRouter): AppRouterInstance;
|
||||
/**
|
||||
* adaptForSearchParams transforms the ParsedURLQuery into URLSearchParams.
|
||||
*
|
||||
* @param router the router that contains the query.
|
||||
* @returns the search params in the URLSearchParams format
|
||||
*/
|
||||
export declare function adaptForSearchParams(router: Pick<NextRouter, 'isReady' | 'query'>): URLSearchParams;
|
||||
export declare function PathnameContextProviderAdapter({ children, router, ...props }: React.PropsWithChildren<{
|
||||
router: Pick<NextRouter, 'pathname' | 'asPath' | 'isReady' | 'isFallback'>;
|
||||
isAutoExport: boolean;
|
||||
}>): JSX.Element;
|
||||
Reference in New Issue
Block a user