bpms_site/.svn/pristine/b2/b20168a28629fd932ccd4a6b6e7fed82f6cde652.svn-base
2025-11-02 16:38:49 +03:30

19 lines
631 B
Plaintext

declare const NOT_FOUND_ERROR_CODE = "NEXT_NOT_FOUND";
type NotFoundError = Error & {
digest: typeof NOT_FOUND_ERROR_CODE;
};
/**
* When used in a React server component, this will set the status code to 404.
* When used in a custom app route it will just send a 404 status.
*/
export declare function notFound(): never;
/**
* Checks an error to determine if it's an error generated by the `notFound()`
* helper.
*
* @param error the error that may reference a not found error
* @returns true if the error is a not found error
*/
export declare function isNotFoundError(error: any): error is NotFoundError;
export {};