@expressots/shared
Version:
Shared library for ExpressoTS modules 🐎
38 lines (37 loc) • 1.03 kB
TypeScript
/**
* The Environment namespace contains all the types and interfaces related to environment configuration.
* @namespace Environment
* @public API
*/
export declare namespace Env {
/**
* Enum representing possible server environments.
* @public API
*/
enum ServerEnvironment {
Development = "development",
Production = "production",
Remote = "remote"
}
/**
* Type representing possible server environments.
*/
type TypeServerEnvironment = "development" | "production" | "remote";
/**
* Interface for environment configuration options.
* @public API
*/
interface IEnvironment {
env: {
development?: string;
production?: string;
};
}
/**
* Type representing possible server environments.
* @public API
*/
type Environment = ServerEnvironment | TypeServerEnvironment | undefined;
}
export type Environment = Env.Environment;
export type IEnvironment = Env.IEnvironment;