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:
15
node_modules/astro/dist/env/validators.d.ts
generated
vendored
Normal file
15
node_modules/astro/dist/env/validators.d.ts
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
import type { EnvFieldType } from './schema.js';
|
||||
export type ValidationResultValue = EnvFieldType['default'];
|
||||
export type ValidationResultErrors = ['missing'] | ['type'] | Array<string>;
|
||||
interface ValidationResultValid {
|
||||
ok: true;
|
||||
value: ValidationResultValue;
|
||||
}
|
||||
export interface ValidationResultInvalid {
|
||||
ok: false;
|
||||
errors: ValidationResultErrors;
|
||||
}
|
||||
type ValidationResult = ValidationResultValid | ValidationResultInvalid;
|
||||
export declare function getEnvFieldType(options: EnvFieldType): string;
|
||||
export declare function validateEnvVariable(value: string | undefined, options: EnvFieldType): ValidationResult;
|
||||
export {};
|
Reference in New Issue
Block a user