Refactor routing in App component to enhance navigation and improve error handling by integrating dynamic routes and updating the NotFound route.
This commit is contained in:
30
node_modules/astro/dist/events/error.d.ts
generated
vendored
Normal file
30
node_modules/astro/dist/events/error.d.ts
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
import type { ZodError } from 'zod';
|
||||
import { type ErrorWithMetadata } from '../core/errors/index.js';
|
||||
interface ErrorEventPayload {
|
||||
name: string;
|
||||
isFatal: boolean;
|
||||
plugin?: string | undefined;
|
||||
cliCommand: string;
|
||||
anonymousMessageHint?: string | undefined;
|
||||
}
|
||||
interface ConfigErrorEventPayload extends ErrorEventPayload {
|
||||
isConfig: true;
|
||||
configErrorPaths: string[];
|
||||
}
|
||||
export declare function eventConfigError({ err, cmd, isFatal, }: {
|
||||
err: ZodError;
|
||||
cmd: string;
|
||||
isFatal: boolean;
|
||||
}): {
|
||||
eventName: string;
|
||||
payload: ConfigErrorEventPayload;
|
||||
}[];
|
||||
export declare function eventError({ cmd, err, isFatal, }: {
|
||||
err: ErrorWithMetadata;
|
||||
cmd: string;
|
||||
isFatal: boolean;
|
||||
}): {
|
||||
eventName: string;
|
||||
payload: ErrorEventPayload;
|
||||
}[];
|
||||
export {};
|
Reference in New Issue
Block a user