@miup/nest-config
Version:
<p align="center"> <a href="http://nestjs.com/" target="blank"><img src="https://nestjs.com/img/logo_text.svg" width="320" alt="Nest Logo" /></a> </p>
12 lines (11 loc) • 466 B
TypeScript
import { ConfigOption } from '../index';
export declare class ConfigService {
private logger;
private readonly envConfig;
constructor(option: ConfigOption);
get(key: string, defaultValue?: any): any;
getString(key: string, defaultValue?: string): string;
getNumber(key: string, defaultValue?: number): number;
getBoolean(key: string, defaultValue?: boolean): boolean;
getStringArray(key: string, defaultValue?: string[]): string[];
}