0.2.5 • Published 7 months ago
@types/cloud-env v0.2.5
Installation
npm install --save @types/cloud-env
Summary
This package contains type definitions for cloud-env (https://github.com/ryanj/cloud-env).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/cloud-env.
index.d.ts
// Type definitions for cloud-env 0.2.2
// Project: https://github.com/ryanj/cloud-env
// Definitions by: Ben Davies <https://github.com/Morfent>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare interface DefaultSettings {
PORT?: number | undefined;
IP?: string | undefined;
HOSTNAME?: string | undefined;
APP_NAME?: string | undefined;
MONGODB_DB_URL?: string | undefined;
MONGODB_DB_HOST?: string | undefined;
MONGODB_DB_PORT?: number | undefined;
MONGODB_DB_USERNAME?: string | undefined;
MONGODB_DB_PASSWORD?: string | undefined;
POSTGRESQL_DB_URL?: string | undefined;
POSTGRESQL_DB_HOST?: string | undefined;
POSTGRESQL_DB_PORT?: number | undefined;
POSTGRESQL_DB_USERNAME?: string | undefined;
POSTGRESQL_DB_PASSWORD?: string | undefined;
MYSQL_DB_URL?: string | undefined;
MYSQL_DB_HOST?: string | undefined;
MYSQL_DB_PORT?: number | undefined;
MYSQL_DB_USERNAME?: string | undefined;
MYSQL_DB_PASSWORD?: string | undefined;
}
declare type MaybeNum = number | void;
declare type MaybeStr = string | void;
export const get: (key: string, default_key?: string) => MaybeStr;
export const defaults: { [key: string]: DefaultSettings; };
export const PORT: MaybeNum;
export const IP: MaybeStr;
export const HOSTNAME: MaybeStr;
export const APP_NAME: MaybeStr;
export const MONGODB_DB_URL: MaybeStr;
export const MONGODB_DB_HOST: MaybeStr;
export const MONGODB_DB_PORT: MaybeNum;
export const MONGODB_DB_USERNAME: MaybeStr;
export const MONGODB_DB_PASSWORD: MaybeStr;
export const POSTGRESQL_DB_URL: MaybeStr;
export const POSTGRESQL_DB_HOST: MaybeStr;
export const POSTGRESQL_DB_PORT: MaybeNum;
export const POSTGRESQL_DB_USERNAME: MaybeStr;
export const POSTGRESQL_DB_PASSWORD: MaybeStr;
export const MYSQL_DB_URL: MaybeStr;
export const MYSQL_DB_HOST: MaybeStr;
export const MYSQL_DB_PORT: MaybeNum;
export const MYSQL_DB_USERNAME: MaybeStr;
export const MYSQL_DB_PASSWORD: MaybeStr;
Additional Details
- Last updated: Thu, 08 Jul 2021 09:07:58 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Ben Davies.