@adonisjs/env
Version:
Environment variable manager for Node.js
33 lines (32 loc) • 1.01 kB
TypeScript
import { Exception } from '@poppinss/utils/exception';
/**
* Exception raised when one or more env variables are invalid
*/
export declare const E_INVALID_ENV_VARIABLES: {
new (message?: string, options?: ErrorOptions & {
code?: string;
status?: number;
}): {
help: string;
name: string;
code?: string;
status: number;
toString(): string;
get [Symbol.toStringTag](): string;
message: string;
stack?: string;
cause?: unknown;
};
message: string;
code: string;
help?: string;
status?: number;
isError(error: unknown): error is Error;
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
stackTraceLimit: number;
};
/**
* Exception raised when the identifier is already defined
*/
export declare const E_IDENTIFIER_ALREADY_DEFINED: new (args: [string], options?: ErrorOptions) => Exception;