neondb
Version:
create a claimable Neon database in seconds!
15 lines (13 loc) • 604 B
TypeScript
/**
* Validates the path to the .env file - it can be dotfile or not.
* @param value - The path to the .env file
* @returns An error if the path is invalid, otherwise undefined
*/
declare function validateEnvPath(value: string): Error | undefined;
/**
* Validates the key for the .env file - it can only be uppercase letters or digits and underscores (SCREAMING_SNAKE_CASE).
* @param value - The key for the .env file
* @returns An error if the key is invalid, otherwise undefined
*/
declare function validateEnvKey(value: string): Error | undefined;
export { validateEnvKey, validateEnvPath };