NeahNew/node_modules/next/dist/client/components/is-next-router-error.d.ts
2025-05-03 14:17:46 +02:00

9 lines
431 B
TypeScript

import { type HTTPAccessFallbackError } from './http-access-fallback/http-access-fallback';
import { type RedirectError } from './redirect-error';
/**
* Returns true if the error is a navigation signal error. These errors are
* thrown by user code to perform navigation operations and interrupt the React
* render.
*/
export declare function isNextRouterError(error: unknown): error is RedirectError | HTTPAccessFallbackError;